-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (27 loc) · 830 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM node:18.15-alpine as base
WORKDIR /app
COPY ./package.json ./package-lock.json ./
RUN --mount=type=cache,target=/root/.npm --mount=type=cache,target=/root/.cache npm ci
# ===============================
FROM base as web
COPY ./apps/web .
EXPOSE 3000
CMD ["npx", "nx", "run", "web:serve", "--hostname=0.0.0.0", "--port=3000"]
# ===============================
FROM base as admin-web
COPY ./apps/admin-web .
EXPOSE 3000
CMD ["npx", "nx", "run", "admin-web:serve", "--hostname=0.0.0.0", "--port=3000"]
# ===============================
FROM base as api
COPY ./apps/api .
EXPOSE 3333
CMD ["npx", "nx", "serve", "api"]
FROM base as booking
COPY ./apps/booking .
EXPOSE 3333
CMD ["npx", "nx", "serve", "booking"]
FROM base as gateway
COPY ./apps/gateway .
EXPOSE 3000
CMD ["npx", "nx", "serve", "gateway"]