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
|
.git
|
||||||
.dockerignore
|
.dockerignore
|
||||||
Dockerfile
|
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
|
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
|
WORKDIR /app
|
||||||
ENV PRISMA_SKIP_POSTINSTALL_GENERATE=true
|
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/)
|
# Optional: Use Nexus as npm registry (pass --build-arg NPM_REGISTRY=http://nexus:8081/repository/npm/)
|
||||||
ARG NPM_REGISTRY=
|
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:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
NPM_REGISTRY: ${NPM_REGISTRY:-}
|
||||||
container_name: canino_backend_prod
|
container_name: canino_backend_prod
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
@ -50,6 +52,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
|
NPM_REGISTRY: ${NPM_REGISTRY:-}
|
||||||
NEXT_PUBLIC_API_URL: "https://api.canina.ir/api"
|
NEXT_PUBLIC_API_URL: "https://api.canina.ir/api"
|
||||||
VITE_API_URL: "https://api.canina.ir"
|
VITE_API_URL: "https://api.canina.ir"
|
||||||
container_name: canino_frontend_prod
|
container_name: canino_frontend_prod
|
||||||
|
|||||||
@ -23,6 +23,8 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
NPM_REGISTRY: ${NPM_REGISTRY:-}
|
||||||
container_name: canino_backend_stage
|
container_name: canino_backend_stage
|
||||||
restart: always
|
restart: always
|
||||||
dns:
|
dns:
|
||||||
@ -53,6 +55,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
|
NPM_REGISTRY: ${NPM_REGISTRY:-}
|
||||||
NEXT_PUBLIC_API_URL: "https://stageapi.canina.ir/api"
|
NEXT_PUBLIC_API_URL: "https://stageapi.canina.ir/api"
|
||||||
VITE_API_URL: "https://stageapi.canina.ir"
|
VITE_API_URL: "https://stageapi.canina.ir"
|
||||||
container_name: canino_frontend_stage
|
container_name: canino_frontend_stage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user