Skip to content

Commit

Permalink
improved build time for dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTemmie committed Sep 1, 2023
1 parent c86cc89 commit 7415637
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ FROM node:16-alpine
RUN mkdir -p /app
WORKDIR /app

COPY . .
COPY package.json .

ENV PATH /app/node_modules/.bin:$PATH

RUN npm install --silent --force

COPY . .

RUN npm run build

CMD ["npm", "run", "preview"]

0 comments on commit 7415637

Please sign in to comment.