This repository has been archived on 2023-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
meincantor-api/Dockerfile
2021-12-17 11:31:46 +01:00

11 lines
222 B
Docker

FROM rust:1 as builder
WORKDIR /app
COPY . .
RUN cargo install --path .
FROM debian:buster-slim as runner
COPY --from=builder /usr/local/cargo/bin/api /usr/local/bin/api
ENV ROCKET_ADDRESS=0.0.0.0
EXPOSE 3000
CMD ["api"]