Skip to content
Snippets Groups Projects
Commit 5a9e60dd authored by Robin Appelman's avatar Robin Appelman
Browse files

update dockerfile


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 0a4edc2f
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,8 @@ COPY Cargo.toml Cargo.lock ./ ...@@ -4,6 +4,8 @@ COPY Cargo.toml Cargo.lock ./
# Build with a dummy main to pre-build dependencies # Build with a dummy main to pre-build dependencies
RUN mkdir src && \ RUN mkdir src && \
sudo chown -R rust:rust . && \
sed -i '/test_client/d' Cargo.toml && \
echo "fn main(){}" > src/main.rs && \ echo "fn main(){}" > src/main.rs && \
cargo build --release && \ cargo build --release && \
rm -r src rm -r src
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment