mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2025-05-02 14:44:42 +00:00
Merge 0855b0ec68
into 970987c5f7
This commit is contained in:
commit
9ffe726cde
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ COPY --from=planner /app/recipe.json recipe.json
|
||||||
# Build our project dependencies, not our application!
|
# Build our project dependencies, not our application!
|
||||||
RUN cargo chef cook --release --recipe-path recipe.json
|
RUN cargo chef cook --release --recipe-path recipe.json
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV SQLX_OFFLINE true
|
ENV SQLX_OFFLINE=true
|
||||||
# Build our project
|
# Build our project
|
||||||
RUN cargo build --release --bin zero2prod
|
RUN cargo build --release --bin zero2prod
|
||||||
|
|
||||||
|
@ -26,5 +26,5 @@ RUN apt-get update -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=builder /app/target/release/zero2prod zero2prod
|
COPY --from=builder /app/target/release/zero2prod zero2prod
|
||||||
COPY configuration configuration
|
COPY configuration configuration
|
||||||
ENV APP_ENVIRONMENT production
|
ENV APP_ENVIRONMENT=production
|
||||||
ENTRYPOINT ["./zero2prod"]
|
ENTRYPOINT ["./zero2prod"]
|
||||||
|
|
Loading…
Reference in a new issue