mirror of
https://github.com/actix/examples
synced 2024-11-30 17:14:35 +01:00
16 lines
210 B
Docker
16 lines
210 B
Docker
|
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"]
|