Skip to content

Commit 5afa745

Browse files
committed
Remove volume and clean up Dockerfile
1 parent b0fb8b3 commit 5afa745

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ services:
55
target: $BUILD_ENV
66
ports:
77
- $FRONTEND_PORT:$FRONTEND_PORT
8-
volumes:
9-
- ./frontend:/app
10-
- /app/node_modules
118
depends_on:
129
- question-service
1310
- user-service
11+
1412
question-service:
1513
build:
1614
context: ./question-service

frontend/Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,5 @@ COPY . .
1515
RUN yarn build
1616

1717
# Production runtime stage
18-
FROM node:20-alpine AS prod
19-
WORKDIR /app
20-
COPY --from=build /app/package.json /app/yarn.lock ./
21-
COPY --from=build /app/.next ./.next
22-
COPY --from=build /app/public ./public
23-
RUN yarn install --production --frozen-lockfile
18+
FROM build AS prod
2419
CMD ["yarn", "start"]

0 commit comments

Comments
 (0)