Skip to content

Commit 5ae32e3

Browse files
authored
chore(docker): cleanup docker file
1 parent 94e4312 commit 5ae32e3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

apps/user/Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
FROM node:20-alpine AS builder
2-
32
RUN apk add --no-cache python3 make g++ bash
43
RUN corepack enable && corepack prepare yarn@4.9.4 --activate
5-
64
WORKDIR /app
75
ENV PATH=/app/node_modules/.bin:$PATH
8-
96
COPY package.json yarn.lock .yarnrc.yml .yarn ./
107
COPY packages ./packages
118
COPY apps ./apps
12-
139
RUN yarn install --silent
14-
1510
WORKDIR /app/apps/user
1611
RUN yarn build
1712
RUN yarn workspaces focus --production
18-
1913
FROM node:20-alpine AS prod
2014
WORKDIR /app
21-
2215
COPY --from=builder /app/apps/user/dist ./dist
2316
COPY --from=builder /app/package.json ./package.json
2417
COPY --from=builder /app/node_modules ./node_modules
25-
2618
EXPOSE 8080
2719
CMD ["node", "dist/src/main.js"]

0 commit comments

Comments
 (0)