Files
ivatar-docker/Dockerfile
Ryan Hamilton 9175898bf3
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2m45s
fix: update pip and setuptools installation in Dockerfile
2025-07-25 08:58:25 -05:00

23 lines
678 B
Docker

FROM python:alpine
WORKDIR /ivatar
RUN apk add --no-cache --virtual build-deps build-base gcc python3-dev musl-dev git && \
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 git clone https://gitea.purpleraft.com/external-repos/ivatar.git .
RUN virtualenv -p python3 .virtualenv && \
source .virtualenv/bin/activate && \
pip install --upgrade pip setuptools wheel && \
pip install 2to3 pillow && \
pip install --no-build-isolation -r requirements.txt
RUN apk del build-deps && pip cache purge
COPY entrypoint.sh .
EXPOSE 8080
CMD ["/bin/ash", "entrypoint.sh"]