Skip to content

Commit

Permalink
fix: fix wheel caching in docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
corenting committed May 15, 2024
1 parent d7c8db7 commit 74a42c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
19 changes: 10 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# Python base (venv and user)
FROM python:3.12 AS base

# Install dependencies that don't have wheels
# for some architectures directly so that they can be cached
RUN /usr/local/bin/pip install --user \
uvloop==0.19.0 \
lxml==5.2.1 \
httptools==0.6.1 \
MarkupSafe==2.1.5 \
pyyaml==6.0.1

# Install dumb-init
RUN apt-get update && apt-get install -y dumb-init

Expand All @@ -19,6 +10,16 @@ RUN useradd -m eddrit && \
chown -R eddrit /app/
USER eddrit

# Install dependencies that don't have wheels
# for some architectures directly so that they can be cached.
# To keep in sync with poetry.lock to speedup CI
RUN /usr/local/bin/pip install --user \
uvloop==0.19.0 \
lxml==5.2.2 \
httptools==0.6.1 \
MarkupSafe==2.1.5 \
pyyaml==6.0.1

# Dependencies
WORKDIR /app/
COPY . /app/
Expand Down
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74a42c0

Please sign in to comment.