This commit is contained in:
Forsell 2025-01-24 11:21:00 +01:00 committed by GitHub
commit 9ffe726cde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ COPY --from=planner /app/recipe.json recipe.json
# Build our project dependencies, not our application!
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
ENV SQLX_OFFLINE true
ENV SQLX_OFFLINE=true
# Build our project
RUN cargo build --release --bin zero2prod
@ -26,5 +26,5 @@ RUN apt-get update -y \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/zero2prod zero2prod
COPY configuration configuration
ENV APP_ENVIRONMENT production
ENV APP_ENVIRONMENT=production
ENTRYPOINT ["./zero2prod"]