mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 11:59:48 -05:00
chore(docker): remove dependency caching from Dockerfile
This commit is contained in:
parent
29ddef8df0
commit
82f1a3207f
1 changed files with 0 additions and 5 deletions
|
@ -2,11 +2,6 @@ FROM rust:1.67.0-alpine3.17 as builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk update
|
RUN apk update
|
||||||
RUN apk add --no-cache musl-dev
|
RUN apk add --no-cache musl-dev
|
||||||
COPY Cargo.toml Cargo.toml
|
|
||||||
RUN mkdir -p src/
|
|
||||||
RUN echo "fn main() {println!(\"failed to build\")}" > src/main.rs
|
|
||||||
RUN cargo build --release
|
|
||||||
RUN rm -f target/release/deps/rustypaste*
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo build --locked --release
|
RUN cargo build --locked --release
|
||||||
RUN mkdir -p build-out/
|
RUN mkdir -p build-out/
|
||||||
|
|
Loading…
Reference in a new issue