mirror of
https://github.com/caprover/caprover
synced 2026-09-25 16:15:34 +00:00
Simplified docker files
This commit is contained in:
@@ -5,10 +5,10 @@ WORKDIR /usr/src/app
|
||||
|
||||
# Build backend code
|
||||
|
||||
COPY package.json /usr/src/app/
|
||||
RUN npm install && npm cache clean --force
|
||||
COPY . /usr/src/app
|
||||
RUN npm install && npm cache clean --force
|
||||
RUN npm run build
|
||||
|
||||
RUN mv ./edge-override.json ./config-override.json
|
||||
|
||||
|
||||
|
||||
@@ -7,9 +7,8 @@ WORKDIR /usr/src/app
|
||||
|
||||
# Build backend code
|
||||
|
||||
COPY package.json /usr/src/app/
|
||||
RUN npm install && npm cache clean --force
|
||||
COPY . /usr/src/app
|
||||
RUN npm install && npm cache clean --force
|
||||
RUN npm run build
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
"dev": "echo 'RECOMPILING' && npx madge --circular --extensions ts ./ && rm -rf ./built && npx tsc && sudo ./dev-scripts/dev-reset-service.sh",
|
||||
"clean": "sudo ./dev-scripts/dev-clean-run-as-dev.sh",
|
||||
"tslint": "tslint -c tslint.json -p tsconfig.json",
|
||||
"build": "echo \"USE DEPLOY SCRIPT\" ",
|
||||
"build": "rm -rf ./built && npx tsc",
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user