Add templates into the binary container

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-12-11 22:54:38 +05:30
parent 750ede9f21
commit 0c0b95f031
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5
2 changed files with 2 additions and 1 deletions

View file

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

View file

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