Merge pull request #2488 from FreedomBen/add-init-system-to-docker

Add tini as PID 1 handler in container image
This commit is contained in:
advplyr 2024-01-04 13:50:54 -06:00 committed by GitHub
commit 4f9969cd9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,8 @@ RUN apk update && \
ffmpeg \ ffmpeg \
make \ make \
python3 \ python3 \
g++ g++ \
tini
COPY --from=tone /usr/local/bin/tone /usr/local/bin/ COPY --from=tone /usr/local/bin/tone /usr/local/bin/
COPY --from=build /client/dist /client/dist COPY --from=build /client/dist /client/dist
@ -31,4 +32,5 @@ RUN apk del make python3 g++
EXPOSE 80 EXPOSE 80
ENTRYPOINT ["tini", "--"]
CMD ["node", "index.js"] CMD ["node", "index.js"]