Skip to content

Commit

Permalink
warnings in dockerfile"
Browse files Browse the repository at this point in the history
  • Loading branch information
raclim committed Jul 13, 2024
1 parent edcd351 commit 883ced3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:16.14.2 as base
FROM node:16.14.2 AS base
ENV APP_HOME=/usr/src/app \
TERM=xterm
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
EXPOSE 8000
EXPOSE 8002

FROM base as development
FROM base AS development
ENV NODE_ENV development
COPY package.json package-lock.json ./
RUN npm install
Expand All @@ -18,11 +18,11 @@ COPY translations/locales ./translations/locales
COPY public ./public
CMD ["npm", "start"]

FROM development as build
FROM development AS build
ENV NODE_ENV production
RUN npm run build

FROM base as production
FROM base AS production
ENV NODE_ENV=production
COPY package.json package-lock.json index.js ./
RUN npm install --production
Expand Down

0 comments on commit 883ced3

Please sign in to comment.