Alpine Linux requires the linux-headers package to build psutil.

This commit is contained in:
Fabio Manganiello 2023-08-15 11:40:02 +02:00
parent 00863a176e
commit fef6513cc8
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 4 additions and 4 deletions

View file

@ -66,11 +66,11 @@ steps:
image: python:3.11-alpine image: python:3.11-alpine
commands: commands:
- apk add --update --no-cache redis - apk add --update --no-cache redis
- apk add --update --no-cache --virtual build-base g++ rust - apk add --update --no-cache --virtual build-base g++ rust linux-headers
- pip install -U pip - pip install -U pip
- pip install . - pip install .
- pip install -r requirements-tests.txt - pip install -r requirements-tests.txt
- apk del build-base g++ rust - apk del build-base g++ rust linux-headers
- pytest tests - pytest tests
- name: build-ui - name: build-ui

View file

@ -7,10 +7,10 @@ FROM python:3.11-alpine
RUN mkdir -p /install /app RUN mkdir -p /install /app
COPY . /install COPY . /install
RUN apk add --update --no-cache redis RUN apk add --update --no-cache redis
RUN apk add --update --no-cache --virtual build-base g++ rust RUN apk add --update --no-cache --virtual build-base g++ rust linux-headers
RUN pip install -U pip RUN pip install -U pip
RUN cd /install && pip install . RUN cd /install && pip install .
RUN apk del build-base g++ rust RUN apk del build-base g++ rust linux-headers
EXPOSE 8008 EXPOSE 8008
VOLUME /app/config VOLUME /app/config