Skip to content

Commit

Permalink
Merge pull request #6 from WGBH-MLA/docker-dev
Browse files Browse the repository at this point in the history
Dockerfile: dev
  • Loading branch information
foglabs authored Aug 24, 2022
2 parents b0cf7e5 + 926c02b commit dd40484
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ RUN npm install -g npm npm-upgrade

WORKDIR /var/app

CMD npm run start
COPY package.json .
RUN npm i

CMD npm run dev

# production
FROM dev AS production

COPY ./package.json .
RUN npm i

COPY ./ .
ENV NODE_ENV=production

RUN npm run build

ENV NODE_ENV=production
CMD npm run start

0 comments on commit dd40484

Please sign in to comment.