You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
mango/Dockerfile

17 lines
483 B

# syntax=docker/dockerfile:1.4
FROM rustlang/rust:nightly-slim AS builder
RUN apt update; apt install -y libpq-dev
WORKDIR /code
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/code/target \
cargo build -r; mv ./target/release/mango ./mango
FROM ubuntu
RUN apt update; apt install -y libpq-dev
COPY . .
COPY --from=builder /code/mango /
CMD /mango
EXPOSE 8000
LABEL org.opencontainers.image.source https://github.com/overlisted/mango