-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (22 loc) · 1010 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
FROM node:16.15-bullseye
RUN apt update
ENV NODE_PATH=/usr/local/node_modules
WORKDIR /project
RUN npm install -y --location=global npm@6 --prefix /usr/local/
RUN npm install --save-dev -y express --prefix /usr/local/
RUN npm install --save-dev -y express-graphql --prefix /usr/local/
RUN npm install --save-dev -y graphql --prefix /usr/local/
RUN npm install --save-dev -y superagent --prefix /usr/local/
RUN npm install --save-dev -y mocha --prefix /usr/local/
RUN npm install --save-dev -y sequelize --prefix /usr/local/
RUN npm install --save-dev -y pg pg-hstore --prefix /usr/local/
RUN npm install --save-dev -y dotenv --prefix /usr/local/
RUN npm install --save-dev -y simple-git --prefix /usr/local/
RUN npm install --save-dev -y crypto-js@^4.1.1 --prefix /usr/local/
RUN npm install --save-dev -y child_process@^1.0.2 --prefix /usr/local/
RUN npm install --save-dev -y uuid@^9.0.0 --prefix /usr/local/
RUN apt-get update && \
apt-get -y install tar
COPY . .
EXPOSE 4008/tcp
CMD npm start