mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 22:26:07 +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
|
RUN npm cache clean --force
|
||||||
ENV NODE_ENV="production"
|
ENV NODE_ENV="production"
|
||||||
COPY . .
|
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": {
|
"scripts": {
|
||||||
"build": "tsc && cp -R ./src/templates ./lib",
|
"build": "tsc && cp -R ./src/templates ./lib",
|
||||||
"dev": "npm run build && probot run ./lib/index.js",
|
"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"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user