Skip to content

Commit

Permalink
fix docker warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
imor committed Sep 18, 2024
1 parent ec97e6c commit 0b4dd9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM rust:1.79.0-slim-bookworm AS builder
WORKDIR /app
COPY . .
ENV SQLX_OFFLINE true
ENV SQLX_OFFLINE=true
RUN cargo build --release -p api

FROM debian:bookworm-slim
WORKDIR /app
COPY --from=builder /app/target/release/api api
COPY api/configuration configuration
ENV APP_ENVIRONMENT prod
ENV APP_ENVIRONMENT=prod
ENTRYPOINT ["./api"]

0 comments on commit 0b4dd9f

Please sign in to comment.