fix(docker): permissions

This commit is contained in:
Isaac 2024-01-12 00:46:13 +00:00
parent 036cbaf47e
commit 3bca48f159
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -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 \