Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 4d2b8e2

Browse files
committed
docs
1 parent 08c4a66 commit 4d2b8e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ FROM node:20.13.1-slim AS base
44
LABEL fly_launch_runtime="NodeJS"
55
WORKDIR /app
66
ENV NODE_ENV=production
7+
8+
# Throw-away build stage to reduce size of final image
79
FROM base AS build
810
COPY --link package.json package-lock.json .
911
RUN npm install --production=false
1012
COPY --link . .
1113
RUN npm prune --production
14+
15+
# Final stage for app image
1216
FROM base
1317
COPY --from=build /app /app
1418
CMD [ "npm", "run", "start" ]

0 commit comments

Comments
 (0)