Fix docker build
This commit is contained in:
parent
6694e353ad
commit
dee72440bb
1 changed files with 2 additions and 3 deletions
|
|
@ -4,10 +4,9 @@ RUN npm install -g npm@7
|
|||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN npm install --legacy-peer-deps
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM node:14.13.0-alpine3.10
|
||||
|
||||
WORKDIR /app
|
||||
|
|
@ -16,7 +15,7 @@ ENV NODE_ENV=production
|
|||
COPY backend/package.json .
|
||||
RUN npm install --production
|
||||
|
||||
COPY --from=build backend/dist/main.js main.js
|
||||
COPY --from=build /app/backend/dist/main.js main.js
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue