Skip to content

Commit

Permalink
Fix pip update
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballs committed Dec 5, 2023
1 parent ffec96a commit eb90f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/app_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
FROM python:3.11-slim-bookworm AS builder
COPY docker/app_server/requirements.txt .
RUN apt-get update && apt-get install -y --no-install-recommends gcc python3-dev software-properties-common \
&& pip install --upgrade pip \
&& python -m venv /opt/venv \
&& /opt/venv/bin/pip install --upgrade pip \
&& /opt/venv/bin/pip install --extra-index-url=https://www.piwheels.org/simple -r requirements.txt \
&& /opt/venv/bin/anvil-app-server || true

FROM alpine:latest
ENV PATH="/opt/venv/bin:$PATH"
RUN apk update \
&& apk add --no-cache postgresql-client openjdk8 \
&& adduser -D anvil && mkdir /anvil-data && chown -R anvil:anvil /anvil-data
COPY --from=builder /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

0 comments on commit eb90f3b

Please sign in to comment.