update docker file for prod build

This commit is contained in:
Maidul Islam
2023-07-05 15:39:44 -04:00
parent 27a110a93a
commit f389aa07eb
2 changed files with 10 additions and 2 deletions

View File

@@ -5,4 +5,11 @@ RUN npm ci --production
RUN npm cache clean --force
ENV NODE_ENV="production"
COPY . .
CMD [ "npm", "start" ]
RUN apt-get update && apt-get install -y bash curl && curl -1sLf \
'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.deb.sh' | bash \
&& apt-get update && apt-get install -y infisical=0.8.1
RUN npm run build
CMD [ "npm", "run", "start:prod" ]

View File

@@ -14,7 +14,8 @@
"scripts": {
"build": "tsc && cp -R ./src/templates ./lib",
"dev": "npm run build && probot run ./lib/index.js",
"start": "nodemon -e ts,yml --watch './**/*.ts' --exec npm run dev",
"start:dev": "nodemon -e ts,yml --watch './**/*.ts' --exec npm run dev",
"start:prod": "probot run ./lib/index.js",
"test": "jest"
},
"dependencies": {