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:
committed by
Jonathas Conceição
parent
dc8d61eb59
commit
50332ca491
15
docker_sample/Dockerfile
Normal file
15
docker_sample/Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user