File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 1
- FROM node:14-alpine as deps
2
- RUN apk add --no-cache bash make git python3
3
- RUN apk add --update alpine-sdk
1
+ FROM node:14
4
2
WORKDIR /usr/src/app
5
3
# Do `npm ci` separately so we can cache `node_modules`
6
4
# https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
7
5
COPY package*.json ./
8
6
RUN npm clean-install
9
-
10
- FROM node:14-alpine as build
11
- WORKDIR /usr/src/app
12
- COPY --from=deps /usr/src/app/node_modules ./node_modules
13
7
COPY . .
14
8
RUN npm run build:server
15
-
16
- FROM node:14-alpine as prod
17
- WORKDIR /usr/src/app
18
- COPY --from=deps /usr/src/app/node_modules ./node_modules
19
- COPY --from=build /usr/src/app/bin ./bin
20
- COPY package.json ./
21
9
ENV PG_META_PORT=8080
22
10
CMD ["npm" , "run" , "start" ]
23
11
EXPOSE 8080
You can’t perform that action at this time.
0 commit comments