Skip to content

Commit 883ec16

Browse files
authored
Fix signed-api Dockerfile (#163)
1 parent 0dd76c3 commit 883ec16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ FROM node:18-alpine as api
6262
WORKDIR /app
6363
ENV NODE_ENV=production
6464

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+
6569
RUN addgroup -S deployed-api && \
6670
adduser -h /app -s /bin/false -S -D -H -G deployed-api deployed-api && \
6771
chown -R deployed-api /app

0 commit comments

Comments
 (0)