We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94e4312 commit 5ae32e3Copy full SHA for 5ae32e3
apps/user/Dockerfile
@@ -1,27 +1,19 @@
1
FROM node:20-alpine AS builder
2
-
3
RUN apk add --no-cache python3 make g++ bash
4
RUN corepack enable && corepack prepare yarn@4.9.4 --activate
5
6
WORKDIR /app
7
ENV PATH=/app/node_modules/.bin:$PATH
8
9
COPY package.json yarn.lock .yarnrc.yml .yarn ./
10
COPY packages ./packages
11
COPY apps ./apps
12
13
RUN yarn install --silent
14
15
WORKDIR /app/apps/user
16
RUN yarn build
17
RUN yarn workspaces focus --production
18
19
FROM node:20-alpine AS prod
20
21
22
COPY --from=builder /app/apps/user/dist ./dist
23
COPY --from=builder /app/package.json ./package.json
24
COPY --from=builder /app/node_modules ./node_modules
25
26
EXPOSE 8080
27
CMD ["node", "dist/src/main.js"]
0 commit comments