Skip to content

Commit d6bb83e

Browse files
committed
Unconfigured API state, health URL from server-side env, run container as nextjs user
1 parent 669f522 commit d6bb83e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@ FROM node:22-alpine
22

33
WORKDIR /app
44

5+
ENV NEXT_TELEMETRY_DISABLED=1
6+
57
COPY package*.json ./
68
RUN npm ci
79

810
COPY . .
911
RUN npm run build
1012

13+
RUN addgroup -S nextjs && adduser -S nextjs -G nextjs && chown -R nextjs:nextjs /app
14+
USER nextjs
15+
1116
EXPOSE 3000
1217

1318
CMD ["node_modules/.bin/next", "start"]

0 commit comments

Comments
 (0)