ci: fix prisma mirror and optimize docker context ignoring heavy uploads
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
This commit is contained in:
parent
ae9e82b5eb
commit
a2b8c91cf9
@ -8,3 +8,7 @@ dist
|
||||
.git
|
||||
.dockerignore
|
||||
Dockerfile
|
||||
uploads
|
||||
**/uploads
|
||||
*.pdf
|
||||
graphify-out
|
||||
|
||||
@ -3,6 +3,7 @@ USER root
|
||||
RUN http_proxy=http://172.17.0.1:8888 https_proxy=http://172.17.0.1:8888 apk add --no-cache openssl || apk add --no-cache openssl || true
|
||||
WORKDIR /app
|
||||
ENV PRISMA_SKIP_POSTINSTALL_GENERATE=true
|
||||
ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma
|
||||
|
||||
# Optional: Use Nexus as npm registry (pass --build-arg NPM_REGISTRY=http://nexus:8081/repository/npm/)
|
||||
ARG NPM_REGISTRY=
|
||||
|
||||
2
graphify-out/cache/stat-index.json
vendored
2
graphify-out/cache/stat-index.json
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -23,6 +23,8 @@ services:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
NPM_REGISTRY: ${NPM_REGISTRY:-}
|
||||
container_name: canino_backend_prod
|
||||
restart: always
|
||||
environment:
|
||||
@ -50,6 +52,7 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
NPM_REGISTRY: ${NPM_REGISTRY:-}
|
||||
NEXT_PUBLIC_API_URL: "https://api.canina.ir/api"
|
||||
VITE_API_URL: "https://api.canina.ir"
|
||||
container_name: canino_frontend_prod
|
||||
|
||||
@ -23,6 +23,8 @@ services:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
NPM_REGISTRY: ${NPM_REGISTRY:-}
|
||||
container_name: canino_backend_stage
|
||||
restart: always
|
||||
dns:
|
||||
@ -53,6 +55,7 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
NPM_REGISTRY: ${NPM_REGISTRY:-}
|
||||
NEXT_PUBLIC_API_URL: "https://stageapi.canina.ir/api"
|
||||
VITE_API_URL: "https://stageapi.canina.ir"
|
||||
container_name: canino_frontend_stage
|
||||
|
||||
Loading…
Reference in New Issue
Block a user