Skip to content

Commit

Permalink
fix(dockerfile): trial using npm
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Angelo <[email protected]>
  • Loading branch information
angeloanan committed May 31, 2020
1 parent 16b84fe commit 4a5803e
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,17 +1,17 @@
# Build stage
FROM node:14 AS build
FROM node:14-alpine AS build
WORKDIR /usr/app
COPY package*.json ./
RUN yarn install
RUN npm install
COPY . .
RUN yarn build
RUN npm build

# App stage
FROM node:14-alpine as app
WORKDIR /usr/app
COPY package*.json ./
ENV NODE_ENV=production
RUN yarn install --production
RUN npm install --production

COPY --from=build /usr/app/target ./
VOLUME /usr/app/img
Expand Down

0 comments on commit 4a5803e

Please sign in to comment.