Add templates into the binary container
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
750ede9f21
commit
0c0b95f031
2 changed files with 2 additions and 1 deletions
|
@ -3,5 +3,5 @@ docker-build:
|
||||||
before_script:
|
before_script:
|
||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
|
||||||
script:
|
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
|
- docker push registry.baalajimaestro.me/baalajimaestro/obsolute-paste:latest
|
||||||
|
|
|
@ -11,5 +11,6 @@ RUN cargo build --release
|
||||||
|
|
||||||
FROM gcr.io/distroless/cc:nonroot
|
FROM gcr.io/distroless/cc:nonroot
|
||||||
COPY --from=builder /app/target/release/paste-frontend /
|
COPY --from=builder /app/target/release/paste-frontend /
|
||||||
|
ADD --chmod=005 templates /templates
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["/paste-frontend"]
|
CMD ["/paste-frontend"]
|
||||||
|
|
Loading…
Reference in a new issue