forked from epfml/disco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (24 loc) · 900 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
# syntax=docker/dockerfile:1
FROM ubuntu:20.04
ENV NODE_ENV=development
RUN apt-get upgrade -y \
&& apt-get update -y \
&& apt-get install -y libnode-dev \
&& apt-get install -y python3.8 \
&& apt install -y build-essential \
&& apt-get install -y curl \
&& curl --silent --location https://deb.nodesource.com/setup_16.x | bash - \
&& apt install -y nodejs
COPY discojs/package*.json discojs/
RUN cd discojs/ && npm ci
COPY discojs/tsconfig.base.json discojs/
COPY discojs/discojs-core/types/ discojs/discojs-core/types/
COPY discojs/discojs-core/src/ discojs/discojs-core/src/
COPY discojs/discojs-node/ discojs/discojs-node/
RUN cd discojs/discojs-node/ && npm run build
COPY server/package*.json server/
RUN cd server/ && npm ci && npm link ../discojs/discojs-node
COPY server/ server/
RUN cd server/ && npm run build
WORKDIR /server
CMD [ "npm", "start" ]