This commit is contained in:
2023-06-04 14:32:40 +00:00
parent 4d51d42da7
commit 3a699de25b
4 changed files with 7 additions and 12 deletions

View File

@@ -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:

View File

@@ -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;"]

View File

@@ -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"