Skip to content

Commit

Permalink
fix: set up target env var
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowballXueQiu committed Aug 30, 2023
1 parent 102ae8a commit 49a4ce4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ WORKDIR /home/app
COPY ./Cargo.toml ./Cargo.toml
COPY ./src ./src

# Set up Target Environment variable
ENV OUT_DIR /home/app/target/

# Cargo build Rust Project
RUN CARGO_TARGET_DIR=/home/app/target/ cargo build --release
RUN cargo build --release

# Build a production environment Docker Image
FROM ubuntu:22.04
Expand Down

0 comments on commit 49a4ce4

Please sign in to comment.