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

16 lines
344 B
Docker
Raw Permalink Normal View History

2021-12-17 11:31:46 +01:00
FROM rust:1 as builder
WORKDIR /app
COPY . .
RUN cargo install --path .
FROM debian:bullseye-slim as runner
2021-12-18 16:40:03 +01:00
RUN apt-get update \
&& apt-get install -y ca-certificates tzdata libssl-dev \
2021-12-18 16:40:03 +01:00
&& rm -rf /var/lib/apt/lists/*
2021-12-17 11:31:46 +01:00
COPY --from=builder /usr/local/cargo/bin/api /usr/local/bin/api
ENV ROCKET_ADDRESS=0.0.0.0
EXPOSE 8000
2021-12-17 11:31:46 +01:00
CMD ["api"]