We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0fb8b3 commit 5afa745Copy full SHA for 5afa745
docker-compose.yml
@@ -5,12 +5,10 @@ services:
5
target: $BUILD_ENV
6
ports:
7
- $FRONTEND_PORT:$FRONTEND_PORT
8
- volumes:
9
- - ./frontend:/app
10
- - /app/node_modules
11
depends_on:
12
- question-service
13
- user-service
+
14
question-service:
15
build:
16
context: ./question-service
frontend/Dockerfile
@@ -15,10 +15,5 @@ COPY . .
RUN yarn build
17
# 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
+FROM build AS prod
24
CMD ["yarn", "start"]
0 commit comments