mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 17:23:08 +02:00
fix(docker): permissions
This commit is contained in:
parent
036cbaf47e
commit
3bca48f159
@ -17,6 +17,7 @@ FROM node:18-alpine AS runner
|
|||||||
RUN apk --no-cache add curl \
|
RUN apk --no-cache add curl \
|
||||||
&& adduser --disabled-password --home /home/container container \
|
&& adduser --disabled-password --home /home/container container \
|
||||||
&& mkdir /app \
|
&& mkdir /app \
|
||||||
|
&& chown container:container /app \
|
||||||
&& chmod -R 777 /app
|
&& chmod -R 777 /app
|
||||||
USER container
|
USER container
|
||||||
ENV USER=container \
|
ENV USER=container \
|
||||||
@ -26,7 +27,7 @@ ENV USER=container \
|
|||||||
HTTP_PORT=80 \
|
HTTP_PORT=80 \
|
||||||
DOCKER=true
|
DOCKER=true
|
||||||
WORKDIR /home/container
|
WORKDIR /home/container
|
||||||
COPY --from=builder --chown=container:container /build /app
|
COPY --from=builder /build /app
|
||||||
EXPOSE ${HTTP_PORT}/tcp
|
EXPOSE ${HTTP_PORT}/tcp
|
||||||
ENTRYPOINT [ "/app/scripts/start.sh" ]
|
ENTRYPOINT [ "/app/scripts/start.sh" ]
|
||||||
HEALTHCHECK --interval=15s --timeout=5s --start-period=60s \
|
HEALTHCHECK --interval=15s --timeout=5s --start-period=60s \
|
||||||
|
Loading…
Reference in New Issue
Block a user