Skip to content

Commit

Permalink
Add sample dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Orhideous committed Dec 2, 2023
1 parent 358a06e commit 34f776c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM messense/rust-musl-cross:x86_64-musl AS builer
COPY . /home/rust/src
RUN cargo build --release
RUN musl-strip /home/rust/src/target/x86_64-unknown-linux-musl/release/thangail

FROM scratch
COPY --from=builer /home/rust/src/target/x86_64-unknown-linux-musl/release/thangail /thangail
ENV ROCKET_ADDRESS=0.0.0.0
ENV ROCKET_PORT=80
CMD ["/thangail"]

0 comments on commit 34f776c

Please sign in to comment.