zero2prod_axum/Dockerfile

9 lines
214 B
Text
Raw Normal View History

FROM docker.io/rust:1.75.0
WORKDIR /app
RUN apt update && apt install lld clang -y
COPY . .
ENV SQLX_OFFLINE true
RUN cargo build --release
ENV APP_ENVIRONMENT production
ENTRYPOINT ["./target/release/learn_axum"]