From 3bca48f159d1da64ac9a586a0c786172e05a09b3 Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 12 Jan 2024 00:46:13 +0000 Subject: [PATCH] fix(docker): permissions --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 67afb67..5f9aa7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ @@ -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 \