Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Dec 27, 2023
1 parent 9b52fd6 commit 657add4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,14 @@ RUN rustup component add cargo
# TODO: Hacky but it works
RUN mkdir -p ./src
RUN mkdir -p ./crates/postgres-docker-utils/src
RUN mkdir -p ./crates/fake-rpc/src

# Copy only Cargo.toml for better caching
COPY ./Cargo.toml ./Cargo.toml
COPY ./Cargo.lock ./Cargo.lock
COPY ./crates/postgres-docker-utils/Cargo.toml ./crates/postgres-docker-utils/Cargo.toml
COPY ./crates/fake-rpc/Cargo.toml ./crates/fake-rpc/Cargo.toml

RUN echo "fn main() {}" > ./src/main.rs
RUN echo "fn main() {}" > ./crates/postgres-docker-utils/src/main.rs
RUN echo "fn main() {}" > ./crates/fake-rpc/src/main.rs

# Prebuild dependencies
RUN cargo fetch
Expand Down

0 comments on commit 657add4

Please sign in to comment.