Skip to content

Commit e30cb32

Browse files
1013 Includes public folder in docker image (#23)
1 parent 20ac84d commit e30cb32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM node:18-alpine AS builder
22

33
# ENV NODE_ENV=production
4+
ENV NEXT_TELEMETRY_DISABLED 1
45

56
WORKDIR /app
67
COPY . .
@@ -12,13 +13,13 @@ RUN npm run build
1213
FROM node:18-alpine AS runner
1314

1415
# ENV NODE_ENV=production
16+
ENV NEXT_TELEMETRY_DISABLED 1
1517

1618
COPY --from=builder /app/.next/standalone /app
1719
COPY --from=builder /app/.next/static /app/.next/static
20+
COPY --from=prod-builder /app/public /app/public
1821

1922
WORKDIR /app
2023
USER node
2124
EXPOSE 3000
2225
CMD ["node", "server.js"]
23-
24-

0 commit comments

Comments
 (0)