1
0
mirror of https://github.com/actix/examples synced 2024-11-24 06:43:00 +01:00
examples/docker_sample/Dockerfile

16 lines
210 B
Docker
Raw Normal View History

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"]