forked from Corsace/corsace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (31 loc) · 826 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
FROM node:16-alpine AS base
WORKDIR /src
FROM base AS builder
COPY LICENSE package.json package-lock.json README.md tsconfig.json ormconfig.ts /src/
RUN npm ci
COPY Assets/ /src/Assets/
COPY AYIM/ /src/AYIM/
COPY Closed/ /src/Closed/
COPY BanchoBot/ /src/BanchoBot/
COPY DiscordBot/ /src/DiscordBot/
COPY Interfaces/ /src/Interfaces/
COPY Main/ /src/Main/
COPY MCA/ /src/MCA/
COPY Models/ /src/Models/
COPY Open/ /src/Open/
COPY Server/ /src/Server/
COPY Typing/ /src/Typing/
COPY config/ /src/config/
RUN npm run build:ayim
RUN npm run build:mca
RUN npm run build:main
RUN npm run build:api
RUN npm run build:open
RUN npm run build:discord-bot
RUN npm run build:bancho-bot
ENV NODE_ENV=production
RUN npm prune --production
FROM base
ENV NODE_ENV=production
COPY --from=builder /src /src
ENTRYPOINT ["npm", "run"]