Skip to content

Commit

Permalink
chore: fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Feb 27, 2024
1 parent 2544d51 commit 334c153
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ FROM rust:1.76.0-alpine3.18 as builder
WORKDIR /usr/src

RUN apk add --no-cache \
pkgconfig
pkgconfig \
libressl-dev \
musl-dev

COPY Cargo.toml Cargo.lock ./
COPY src ./src

RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/src/target \
cargo build --release
RUN cargo build --release


FROM alpine as runner
Expand Down

0 comments on commit 334c153

Please sign in to comment.