1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

Add docker_sample to examples collection

This commit is contained in:
curiousdev
2020-02-24 10:48:04 -07:00
committed by Jonathas Conceição
parent dc8d61eb59
commit 50332ca491
5 changed files with 80 additions and 0 deletions

15
docker_sample/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM rust:1 as builder
COPY . .
RUN cargo build --release
FROM rust:1-slim-stretch
COPY --from=builder /target/release/docker_sample .
RUN ls -la /docker_sample
EXPOSE 5000
ENTRYPOINT ["/docker_sample"]