Skip to content

Commit 3bca48f

Browse files
committed
fix(docker): permissions
1 parent 036cbaf commit 3bca48f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ FROM node:18-alpine AS runner
1717
RUN apk --no-cache add curl \
1818
&& adduser --disabled-password --home /home/container container \
1919
&& mkdir /app \
20+
&& chown container:container /app \
2021
&& chmod -R 777 /app
2122
USER container
2223
ENV USER=container \
@@ -26,7 +27,7 @@ ENV USER=container \
2627
HTTP_PORT=80 \
2728
DOCKER=true
2829
WORKDIR /home/container
29-
COPY --from=builder --chown=container:container /build /app
30+
COPY --from=builder /build /app
3031
EXPOSE ${HTTP_PORT}/tcp
3132
ENTRYPOINT [ "/app/scripts/start.sh" ]
3233
HEALTHCHECK --interval=15s --timeout=5s --start-period=60s \

0 commit comments

Comments
 (0)