We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dd76c3 commit 883ec16Copy full SHA for 883ec16
Dockerfile
@@ -62,6 +62,10 @@ FROM node:18-alpine as api
62
WORKDIR /app
63
ENV NODE_ENV=production
64
65
+# Make sure the non-root user can bind to port 80.
66
+RUN apk add --no-cache libcap
67
+RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
68
+
69
RUN addgroup -S deployed-api && \
70
adduser -h /app -s /bin/false -S -D -H -G deployed-api deployed-api && \
71
chown -R deployed-api /app
0 commit comments