Skip to content

Commit

Permalink
Merge pull request #154 from egor-tensin/dockerfile
Browse files Browse the repository at this point in the history
Dockerfile: improve caching
  • Loading branch information
szabodanika committed Jun 26, 2023
2 parents 92a529d + f28f1e2 commit 4f9c447
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ FROM rust:latest as build

WORKDIR /app

COPY . .

RUN \
DEBIAN_FRONTEND=noninteractive \
apt-get update &&\
apt-get -y install ca-certificates tzdata &&\
apt-get -y install ca-certificates tzdata

COPY . .

RUN \
CARGO_NET_GIT_FETCH_WITH_CLI=true \
cargo build --release

Expand Down

0 comments on commit 4f9c447

Please sign in to comment.