|
@@ -1,5 +1,4 @@
|
|
|
-
|
|
|
-FROM rust:1.53.0
|
|
|
+FROM rust:1.56.1
|
|
|
# Let's switch our working directory to `app` (equivalent to `cd app`)
|
|
|
# The `app` folder will be created for us by Docker in case it does not
|
|
|
# exist already.
|
|
@@ -10,7 +9,7 @@ COPY . .
|
|
|
WORKDIR /app/backend
|
|
|
ENV SQLX_OFFLINE true
|
|
|
ENV APP_ENVIRONMENT production
|
|
|
-RUN cargo build --release
|
|
|
+RUN RUSTFLAGS="-C opt-level=2" cargo build --release
|
|
|
|
|
|
# When `docker run` is executed, launch the binary!
|
|
|
ENTRYPOINT ["./target/release/backend"]
|