Avoid soft-lock bug
Rust binaries are soft-locking when workdir is set to / Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
0c0b95f031
commit
b98bcf09f2
1 changed files with 5 additions and 4 deletions
|
@ -9,8 +9,9 @@ COPY src /app/src
|
|||
COPY templates /app/templates
|
||||
RUN cargo build --release
|
||||
|
||||
FROM gcr.io/distroless/cc:nonroot
|
||||
COPY --from=builder /app/target/release/paste-frontend /
|
||||
ADD --chmod=005 templates /templates
|
||||
FROM gcr.io/distroless/cc:latest
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/release/paste-frontend /app/paste-frontend
|
||||
ADD templates /app/templates
|
||||
EXPOSE 8080
|
||||
CMD ["/paste-frontend"]
|
||||
CMD ["./paste-frontend"]
|
||||
|
|
Loading…
Reference in a new issue