Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSpaceCanary committed Feb 6, 2020
1 parent b394c10 commit e4c11ba
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ MAINTAINER bluespacecanary

# create a new empty shell project
RUN USER=root cargo new --bin rustbucket
WORKDIR /home/rust/src/rustbucket

# copy over your manifests
COPY ./Cargo.lock ./Cargo.lock
COPY ./Cargo.toml ./Cargo.toml
ADD --chown=rust:rust ./ .

# this build step will cache your dependencies
# Optimization to make it less annoying to tinker with cargo build
Expand All @@ -18,7 +14,7 @@ RUN cargo build --release
RUN rm src/*.rs

# copy your source tree
COPY ./src ./src
COPY ./src ./src/

# build for release
RUN cargo build --release
Expand Down

0 comments on commit e4c11ba

Please sign in to comment.