Skip to content

Commit

Permalink
fix(docker): permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Jan 12, 2024
1 parent 036cbaf commit 3bca48f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -17,6 +17,7 @@ FROM node:18-alpine AS runner
RUN apk --no-cache add curl \
&& adduser --disabled-password --home /home/container container \
&& mkdir /app \
&& chown container:container /app \
&& chmod -R 777 /app
USER container
ENV USER=container \
Expand All @@ -26,7 +27,7 @@ ENV USER=container \
HTTP_PORT=80 \
DOCKER=true
WORKDIR /home/container
COPY --from=builder --chown=container:container /build /app
COPY --from=builder /build /app
EXPOSE ${HTTP_PORT}/tcp
ENTRYPOINT [ "/app/scripts/start.sh" ]
HEALTHCHECK --interval=15s --timeout=5s --start-period=60s \
Expand Down

0 comments on commit 3bca48f

Please sign in to comment.