forked from barankyle/xr3ngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-build-deploy
executable file
·34 lines (26 loc) · 1.04 KB
/
Dockerfile-build-deploy
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
# syntax = docker/dockerfile:1.2
# not slim because we need github depedencies
FROM node:16-buster
RUN apt update
# Create app directory
WORKDIR /app
RUN apt-get -y install python3-pip
COPY package.json .
COPY packages/analytics/package.json ./packages/analytics/
COPY packages/client/package.json ./packages/client/
COPY packages/client-core/package.json ./packages/client-core/
COPY packages/common/package.json ./packages/common/
COPY packages/editor/package.json ./packages/editor/
COPY packages/engine/package.json ./packages/engine/
COPY packages/gameserver/package.json ./packages/gameserver/
COPY packages/matchmaking/package.json ./packages/matchmaking/
COPY packages/server/package.json ./packages/server/
COPY packages/server-core/package.json ./packages/server-core/
COPY packages/projects/package.json ./packages/projects/
COPY project-package-jsons ./
RUN npm install --production=false --loglevel notice --legacy-peer-deps
# copy then compile the code
COPY . .
RUN npm run build-client
ENV APP_ENV=production
CMD ["scripts/start-server.sh"]