Skip to content

Commit

Permalink
Fix Rocket template (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Mar 28, 2022
1 parent 6635466 commit 16f410c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions predefined-services/backend/rocket/backend-rocket/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
FROM rust:${{ROCKET_RUST_VERSION}} as builder
WORKDIR /usr/src

RUN rustup default nightly
RUN rustup override set nightly

COPY . .
RUN cargo install --path .


# Minimalistic image
FROM scratch
FROM debian
COPY --from=builder /usr/local/cargo/bin/${{ROCKET_APP_NAME}} /usr/local/bin/${{ROCKET_APP_NAME}}
ENTRYPOINT [ "${{ROCKET_APP_NAME}}" ]

0 comments on commit 16f410c

Please sign in to comment.