Alpine Linux requires the linux-headers package to build psutil.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Fabio Manganiello 2023-08-15 11:40:02 +02:00
parent 00863a176e
commit fef6513cc8
Signed by: 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
commands:
- 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 .
- pip install -r requirements-tests.txt
- apk del build-base g++ rust
- apk del build-base g++ rust linux-headers
- pytest tests
- name: build-ui

View File

@ -7,10 +7,10 @@ FROM python:3.11-alpine
RUN mkdir -p /install /app
COPY . /install
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 cd /install && pip install .
RUN apk del build-base g++ rust
RUN apk del build-base g++ rust linux-headers
EXPOSE 8008
VOLUME /app/config