fix: ci
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
image: alpine:latest
|
||||
|
||||
variables:
|
||||
CS_DEFAULT_BRANCH_IMAGE: $CI_REGISTRY_IMAGE/$CI_DEFAULT_BRANCH:$CI_COMMIT_SHA
|
||||
|
||||
CI_DEBUG_TRACE: "true"
|
||||
|
||||
CACHE_TTL: 2190h0m0s # three months
|
||||
#CI_DEBUG_TRACE: "true"
|
||||
CACHE_TTL: 2190h0m0s
|
||||
|
||||
kaniko-build:
|
||||
variables:
|
||||
|
||||
@@ -14,12 +14,12 @@ COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
RUN yarn build
|
||||
|
||||
|
||||
FROM nginx:1.21-alpine AS runner
|
||||
|
||||
COPY docker/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/dist /static
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
@@ -1,10 +1,8 @@
|
||||
version: "3"
|
||||
services:
|
||||
ds-next:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile
|
||||
build: .
|
||||
container_name: ds-next
|
||||
restart: always
|
||||
ports:
|
||||
- "9090:80"
|
||||
- "9090:80"
|
||||
|
||||
Reference in New Issue
Block a user