-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 854 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 854 Bytes
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
FROM --platform=linux/amd64 node:18.13.0-alpine3.17
RUN yarn config set registry https://registry.npmmirror.com
RUN yarn --network-timeout 1000000
RUN npm config set registry https://registry.npmmirror.com
RUN npm install --location=global pm2
RUN pm2 install pm2-logrotate
RUN mkdir -p /data/code/particle-bundler-server
WORKDIR /data/code/particle-bundler-server
COPY ecosystem.config.js /data/code/particle-bundler-server/ecosystem.config.js
COPY package.json /data/code/particle-bundler-server/package.json
COPY yarn.lock /data/code/particle-bundler-server/yarn.lock
RUN yarn install --production=true
COPY .env.debug /data/code/particle-bundler-server/.env.debug
COPY .env.nodes /data/code/particle-bundler-server/.env.nodes
COPY dist /data/code/particle-bundler-server/dist
CMD pm2-runtime ecosystem.config.js --env=$ENVIRONMENT
EXPOSE 3000