Skip to content

Commit

Permalink
Clean apt cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc authored Oct 7, 2023
1 parent 2b0acae commit 3b2f9f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- '.github/workflows/CI.yml'
- '.github/workflows/github-pages.yaml'
- 'doc/**'
- docker-compose.yml
- README.md

concurrency:
Expand Down
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu:latest as builder
RUN apt update && apt install -y \
RUN apt-get update && apt-get install -y \
gcc \
'g++' \
cmake \
Expand All @@ -17,7 +17,9 @@ RUN apt update && apt install -y \
libssl-dev \
ca-certificates \
curl \
file
file \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain nightly -y
ENV PATH=/root/.cargo/bin:$PATH
Expand Down Expand Up @@ -53,11 +55,13 @@ FROM ubuntu:latest as prod

WORKDIR /app

RUN apt update && apt install -y \
RUN apt-get update && apt-get install -y \
zlib1g \
libexpat1 \
libssl3 \
ca-certificates
ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder /app/target/release/pixiv_downloader /app/pixiv_downloader
COPY --from=builder /clib/lib /app/lib
Expand Down

0 comments on commit 3b2f9f5

Please sign in to comment.