Skip to content

Commit

Permalink
use alpine pip3
Browse files Browse the repository at this point in the history
  • Loading branch information
steve192 committed Apr 17, 2024
1 parent 53ea727 commit 2e55b22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM alpine:3.19

# Install python and build-dependencies for uWSGI
RUN apk add --update --no-cache python3 python3-dev build-base linux-headers pcre-dev && ln -sf python3 /usr/bin/python
RUN apk add --update --no-cache python3 python3-dev py3-pip build-base linux-headers pcre-dev && ln -sf python3 /usr/bin/python

# Install pip, currently not needed, as installed by apk
# RUN python3 -m ensurepip
RUN pip install --no-cache --upgrade pip setuptools
RUN pip3 install --no-cache --upgrade pip setuptools

# Install dependencies
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install --no-cache -r requirements.txt
RUN pip3 install --no-cache -r requirements.txt

# Install application and configs
COPY . /app
Expand Down

0 comments on commit 2e55b22

Please sign in to comment.