-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (24 loc) · 947 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
FROM node:18-alpine
RUN apk update
RUN apk upgrade
RUN set -ex; apk add --no-cache --virtual .fetch-deps curl tar git openssl ;
WORKDIR /tmp/app
COPY package.json package.json
RUN npm install -g npm
RUN npm install --production --no-audit
RUN rm -rf /usr/local/lib/node_modules/npm/node_modules/node-gyp/test
COPY app.js app.js
COPY utils/common.utils.js utils/common.utils.js
COPY config.js config.js
COPY db-factory.js db-factory.js
# COPY flow.schema.json flow.schema.json
COPY http-client.js http-client.js
COPY utils/lib.middlewares.js utils/lib.middlewares.js
# COPY schema.utils.js schema.utils.js
COPY utils/state.utils.js utils/state.utils.js
# COPY generator/code.generator.js generator/code.generator.js
# COPY generator/index.js generator/index.js
# COPY generator/schema.utils.js generator/schema.utils.js
# COPY generator/schema.validator.js generator/schema.validator.js
ENV NODE_ENV='production'
CMD [ "node", "app.js" ]