Skip to content

Commit

Permalink
chore(docker): cache wheels when building
Browse files Browse the repository at this point in the history
  • Loading branch information
corenting committed May 15, 2024
1 parent bc3ae43 commit 36d437c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# 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

# Create user
RUN useradd -m eddrit && \
mkdir /app/ && \
chown -R eddrit /app/
Expand Down

0 comments on commit 36d437c

Please sign in to comment.