mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
update docker file for prod build
This commit is contained in:
@@ -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" ]
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user