fix dockerfile
This commit is contained in:
@@ -6,14 +6,8 @@ COPY package.json ./
|
||||
COPY backend/package.json backend/package.json
|
||||
COPY frontend/package.json frontend/package.json
|
||||
|
||||
WORKDIR /repo/backend
|
||||
RUN npm install
|
||||
|
||||
WORKDIR /repo/frontend
|
||||
RUN npm install
|
||||
|
||||
WORKDIR /repo
|
||||
|
||||
COPY backend backend
|
||||
COPY frontend frontend
|
||||
RUN npm run build
|
||||
@@ -25,7 +19,6 @@ ENV NODE_ENV=production
|
||||
COPY --from=build /repo/package.json ./package.json
|
||||
COPY --from=build /repo/backend/package.json ./backend/package.json
|
||||
COPY --from=build /repo/node_modules ./node_modules
|
||||
COPY --from=build /repo/backend/node_modules ./backend/node_modules
|
||||
COPY --from=build /repo/backend/dist ./backend/dist
|
||||
COPY --from=build /repo/frontend/dist ./backend/dist/public
|
||||
|
||||
|
||||
Reference in New Issue
Block a user