1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Remove pip3 and dependencies after installing

This commit is contained in:
Robin 2020-06-06 11:53:42 +02:00 committed by GitHub
parent ef2a2c817e
commit e531dc4007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,18 @@
FROM python:3.6-alpine
FROM python:3-alpine
WORKDIR /usr/src/app
RUN apk update
RUN apk add gcc libxml2-dev libxslt-dev py3-pip libc-dev linux-headers
RUN pip3 install psutil
RUN pip3 install malojaserver
RUN apk add --no-cache --virtual .build-deps \
gcc \
libxml2-dev \
libxslt-dev \
py3-pip \
libc-dev \
linux-headers \
&& \
pip3 install psutil && \
pip3 install malojaserver && \
apk del .build-deps
EXPOSE 42010