forked from external-repos/ivatar-docker
Aktualisieren Dockerfile, entrypoint.sh
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -2,15 +2,19 @@ FROM python:alpine
|
|||||||
|
|
||||||
WORKDIR /ivatar
|
WORKDIR /ivatar
|
||||||
|
|
||||||
RUN apk add --no-cache --virtual build-deps build-base gcc python2-dev python3-dev musl-dev git && \
|
# RUN apk add --no-cache --virtual build-deps build-base gcc python3-dev musl-dev git && \
|
||||||
apk add --no-cache jpeg-dev openldap-dev libffi-dev mariadb-dev zlib-dev
|
RUN apk add --no-cache py3-virtualenv openldap-dev libffi-dev mariadb-dev zlib-dev
|
||||||
RUN echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so
|
# RUN echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so
|
||||||
|
|
||||||
RUN pip install --upgrade pip setuptools==57.5.0
|
# RUN pip install --upgrade pip setuptools==57.5.0
|
||||||
RUN pip install 2to3 pillow
|
# RUN pip install 2to3 pillow
|
||||||
|
|
||||||
RUN git clone https://git.linux-kernel.at/oliver/ivatar.git .
|
RUN git clone https://git.linux-kernel.at/oliver/ivatar.git .
|
||||||
RUN pip install -r requirements.txt
|
|
||||||
|
RUN virtualenv -p python3 .virtualenv && \
|
||||||
|
source .virtualenv/bin/activate && \
|
||||||
|
pip install pillow && \
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
RUN apk del build-deps && pip cache purge
|
RUN apk del build-deps && pip cache purge
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
python ./manage.py migrate
|
./manage.py migrate
|
||||||
exec python ./manage.py runserver 0:8080
|
exec ./manage.py runserver 0:8080
|
||||||
|
|||||||
Reference in New Issue
Block a user