We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edcd351 commit 883ced3Copy full SHA for 883ced3
Dockerfile
@@ -1,12 +1,12 @@
1
-FROM node:16.14.2 as base
+FROM node:16.14.2 AS base
2
ENV APP_HOME=/usr/src/app \
3
TERM=xterm
4
RUN mkdir -p $APP_HOME
5
WORKDIR $APP_HOME
6
EXPOSE 8000
7
EXPOSE 8002
8
9
-FROM base as development
+FROM base AS development
10
ENV NODE_ENV development
11
COPY package.json package-lock.json ./
12
RUN npm install
@@ -18,11 +18,11 @@ COPY translations/locales ./translations/locales
18
COPY public ./public
19
CMD ["npm", "start"]
20
21
-FROM development as build
+FROM development AS build
22
ENV NODE_ENV production
23
RUN npm run build
24
25
-FROM base as production
+FROM base AS production
26
ENV NODE_ENV=production
27
COPY package.json package-lock.json index.js ./
28
RUN npm install --production
0 commit comments