forked from daloopy/461Team
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathts-builder.Dockerfile
46 lines (39 loc) · 1.41 KB
/
ts-builder.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
# Use an official Node.js runtime as a parent image
FROM node:14-slim
# Copy the binary file from the Rust builder container
COPY --from=rust-builder /glorious-server /epic-server
WORKDIR /epic-server/ts-server
# Install dependencies
RUN apt-get update \
&& apt-get install -y build-essential \
&& apt-get install -y curl \
&& apt-get install -y pkg-config \
&& apt-get install -y libssl-dev \
&& apt-get install -y libpython3.7-dev \
&& apt-get install -y python3.7 \
&& apt-get install -y python3.7-dev \
&& apt-get install -y python3-pip
ENV PYTHON /usr/bin/python3.7
# Install Python dependencies
RUN pip3 install gql \
&& pip3 install requests
# Install Node.js dependencies
RUN npm install path \
&& npm install typescript ts-node @types/node @types/express --save-dev \
&& npm install express \
&& npm install --save @google-cloud/datastore \
&& npm install --save @google-cloud/secret-manager \
&& npm install --save @google-cloud/storage \
&& npm install --save ffi-napi @types/ffi-napi \
&& npm i --save-dev @types/jsonwebtoken \
&& npm i --save-dev @types/bcrypt \
&& npm install jsonwebtoken \
&& npm install bcrypt \
&& npm install dotenv --save \
&& npm install fs \
&& npm install jszip \
&& npm install util \
&& npm install zip-dir \
&& npm install child_process
# Build the TypeScript application
RUN npm run build