Aktualisieren Dockerfile, entrypoint.sh

This commit is contained in:
Bastian Dietrich
2022-09-19 04:15:48 +02:00
parent 491bd5fa2e
commit b8997a2221
2 changed files with 12 additions and 8 deletions

View File

@@ -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

View File

@@ -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