File tree Expand file tree Collapse file tree 5 files changed +50
-40
lines changed
with-postgres-prisma/templates
with-postgres-sequelize/templates
with-postgres-typeorm/templates Expand file tree Collapse file tree 5 files changed +50
-40
lines changed Original file line number Diff line number Diff line change 1- # Base Image GitHub https://github.com/boringcodes/dev-runner
2- # Default WORKDIR /app
3- # Default CMD yarn dev
1+ # https://github.com/boringcodes/prod-builder
42
5- # builder stage
6- FROM boringcodes/dev-runner :node-<%= elementNodeVersion %>-alpine as builder
3+ # build stage
4+ FROM boringcodes/prod-builder :node-<%= elementNodeVersion %>-alpine as builder
75COPY . .
86RUN yarn && yarn build && yarn purge && yarn --production
97
10- # runner stage
11- FROM boringcodes/dev-runner:node-<%= elementNodeVersion %>-alpine
8+ # run stage
9+ FROM node:<%= elementNodeVersion %>-alpine
10+ ENV NODE_ENV=production \
11+ HOST=0.0.0.0 \
12+ PORT=80
13+ WORKDIR /app
1214COPY --from=builder /app/build build
1315COPY --from=builder /app/node_modules node_modules
14- CMD node build/index.js
16+ CMD node build
Original file line number Diff line number Diff line change 1- # Base Image GitHub https://github.com/boringcodes/dev-runner
2- # Default WORKDIR /app
3- # Default CMD yarn dev
1+ # https://github.com/boringcodes/prod-builder
42
5- # builder stage
6- FROM boringcodes/dev-runner :node-<%= elementNodeVersion %>-alpine as builder
3+ # build stage
4+ FROM boringcodes/prod-builder :node-<%= elementNodeVersion %>-alpine as builder
75COPY . .
86RUN yarn && yarn build && yarn purge && yarn --production
97
10- # runner stage
11- FROM boringcodes/dev-runner:node-<%= elementNodeVersion %>-alpine
8+ # run stage
9+ FROM node:<%= elementNodeVersion %>-alpine
10+ ENV NODE_ENV=production \
11+ HOST=0.0.0.0 \
12+ PORT=80
13+ WORKDIR /app
1214COPY --from=builder /app/build build
1315COPY --from=builder /app/node_modules node_modules
14- CMD node build/index.js
16+ CMD node build
Original file line number Diff line number Diff line change 1- # Base Image GitHub https://github.com/boringcodes/dev-runner
2- # Default WORKDIR /app
3- # Default CMD yarn dev
1+ # https://github.com/boringcodes/prod-builder
42
5- # builder stage
6- FROM boringcodes/dev-runner :node-<%= elementNodeVersion %>-alpine as builder
3+ # build stage
4+ FROM boringcodes/prod-builder :node-<%= elementNodeVersion %>-alpine as builder
75COPY . .
86RUN yarn && yarn build && yarn purge && yarn --production
97
10- # runner stage
11- FROM boringcodes/dev-runner:node-<%= elementNodeVersion %>-alpine
8+ # run stage
9+ FROM node:<%= elementNodeVersion %>-alpine
10+ ENV NODE_ENV=production \
11+ HOST=0.0.0.0 \
12+ PORT=80
13+ WORKDIR /app
1214COPY --from=builder /app/build build
1315COPY --from=builder /app/node_modules node_modules
14- CMD node build/index.js
16+ CMD node build
Original file line number Diff line number Diff line change 1- # Base Image GitHub https://github.com/boringcodes/dev-runner
2- # Default WORKDIR /app
3- # Default CMD yarn dev
1+ # https://github.com/boringcodes/prod-builder
42
5- # builder stage
6- FROM boringcodes/dev-runner :node-<%= elementNodeVersion %>-alpine as builder
3+ # build stage
4+ FROM boringcodes/prod-builder :node-<%= elementNodeVersion %>-alpine as builder
75COPY . .
86RUN yarn && yarn build && yarn purge && yarn --production
97
10- # runner stage
11- FROM boringcodes/dev-runner:node-<%= elementNodeVersion %>-alpine
8+ # run stage
9+ FROM node:<%= elementNodeVersion %>-alpine
10+ ENV NODE_ENV=production \
11+ HOST=0.0.0.0 \
12+ PORT=80
13+ WORKDIR /app
1214COPY --from=builder /app/build build
1315COPY --from=builder /app/node_modules node_modules
14- CMD node build/index.js
16+ CMD node build
Original file line number Diff line number Diff line change 1- # Base Image GitHub https://github.com/boringcodes/dev-runner
2- # Default WORKDIR /app
3- # Default CMD yarn dev
1+ # https://github.com/boringcodes/prod-builder
42
5- # builder stage
6- FROM boringcodes/dev-runner :node-<%= elementNodeVersion %>-alpine as builder
3+ # build stage
4+ FROM boringcodes/prod-builder :node-<%= elementNodeVersion %>-alpine as builder
75COPY . .
86RUN yarn && yarn build && yarn purge && yarn --production
97
10- # runner stage
11- FROM boringcodes/dev-runner:node-<%= elementNodeVersion %>-alpine
8+ # run stage
9+ FROM node:<%= elementNodeVersion %>-alpine
10+ ENV NODE_ENV=production \
11+ HOST=0.0.0.0 \
12+ PORT=80
13+ WORKDIR /app
1214COPY --from=builder /app/build build
1315COPY --from=builder /app/node_modules node_modules
14- CMD node build/index.js
16+ CMD node build
You can’t perform that action at this time.
0 commit comments