mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-19 04:34:30 -05:00
Merge pull request #3458 from Craeckie/master
Docker: Added tini for proper signal forwarding
This commit is contained in:
commit
c8fecffbbe
@ -43,7 +43,7 @@ RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \
|
|||||||
|
|
||||||
|
|
||||||
FROM alpine:3.16
|
FROM alpine:3.16
|
||||||
RUN apk add --no-cache librsvg ttf-opensans
|
RUN apk add --no-cache librsvg ttf-opensans tini
|
||||||
WORKDIR /invidious
|
WORKDIR /invidious
|
||||||
RUN addgroup -g 1000 -S invidious && \
|
RUN addgroup -g 1000 -S invidious && \
|
||||||
adduser -u 1000 -S invidious -G invidious
|
adduser -u 1000 -S invidious -G invidious
|
||||||
@ -58,4 +58,5 @@ RUN chmod o+rX -R ./assets ./config ./locales
|
|||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
USER invidious
|
USER invidious
|
||||||
|
ENTRYPOINT ["/sbin/tini", "--"]
|
||||||
CMD [ "/invidious/invidious" ]
|
CMD [ "/invidious/invidious" ]
|
||||||
|
@ -42,7 +42,7 @@ RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
FROM alpine:3.16
|
FROM alpine:3.16
|
||||||
RUN apk add --no-cache librsvg ttf-opensans
|
RUN apk add --no-cache librsvg ttf-opensans tini
|
||||||
WORKDIR /invidious
|
WORKDIR /invidious
|
||||||
RUN addgroup -g 1000 -S invidious && \
|
RUN addgroup -g 1000 -S invidious && \
|
||||||
adduser -u 1000 -S invidious -G invidious
|
adduser -u 1000 -S invidious -G invidious
|
||||||
@ -57,4 +57,5 @@ RUN chmod o+rX -R ./assets ./config ./locales
|
|||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
USER invidious
|
USER invidious
|
||||||
|
ENTRYPOINT ["/sbin/tini", "--"]
|
||||||
CMD [ "/invidious/invidious" ]
|
CMD [ "/invidious/invidious" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user