From 0c0b95f0318dd401d7ed23b0d56098073a506aa1 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 11 Dec 2022 22:54:38 +0530 Subject: [PATCH] Add templates into the binary container Signed-off-by: baalajimaestro --- .gitlab-ci.yml | 2 +- Dockerfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d50357..41fcb8c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,5 +3,5 @@ docker-build: before_script: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin script: - - docker build . -t registry.baalajimaestro.me/baalajimaestro/obsolute-paste:latest + - DOCKER_BUILDKIT=1 docker build . -t registry.baalajimaestro.me/baalajimaestro/obsolute-paste:latest - docker push registry.baalajimaestro.me/baalajimaestro/obsolute-paste:latest diff --git a/Dockerfile b/Dockerfile index d14348a..9cdc130 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,6 @@ RUN cargo build --release FROM gcr.io/distroless/cc:nonroot COPY --from=builder /app/target/release/paste-frontend / +ADD --chmod=005 templates /templates EXPOSE 8080 CMD ["/paste-frontend"]