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
Denys Konovalov 45f51b6774 mode change
2022-04-16 15:17:10 +02:00

16 lines
349 B
Docker
Executable File

FROM rust:1 as builder
WORKDIR /app
COPY . .
RUN cargo install --path .
FROM debian:buster-slim as runner
RUN apt-get update \
&& apt-get install -y ca-certificates tzdata libssl-dev libpq5 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/api /usr/local/bin/api
ENV ROCKET_ADDRESS=0.0.0.0
EXPOSE 3000
CMD ["api"]