forked from platypush/platypush
Alpine Linux requires the linux-headers package to build psutil.
This commit is contained in:
parent
00863a176e
commit
fef6513cc8
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue