Files
Django_kube/django_testing/dockerfile
T
pi-ux-ce 3647ff15e1
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
trying to trigger a new image
2026-03-16 14:42:55 +00:00

33 lines
896 B
Docker

# Stage 1: Build the module
FROM python:3
MAINTAINER pi-ux-ce
ENV PYTHONUNBUFFERED 1
WORKDIR /code/
# Install build tools and MaxMind library
RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*
# Clone the specific GeoIP2 module project
RUN git clone -b testing https://gitea.tryton.geeraert.eu/pi-ux-ce/Django_kube.git
RUN pip install --cache-dir=/opt/hostedtoolcache/pip --upgrade pip
RUN pip list --cache-dir=/opt/hostedtoolcache/pip --outdated
RUN pip install --cache-dir=/opt/hostedtoolcache/pip --upgrade wheel
RUN pip install --cache-dir=/opt/hostedtoolcache/pip --upgrade setuptools
RUN pip install --cache-dir=/opt/hostedtoolcache/pip -r Django_kube/requirements.txt
RUN python Django_kube/django_code/manage.py migrate
COPY entrypoint.sh /code/entrypoint.sh
RUN chmod +x /code/entrypoint.sh
EXPOSE 8000
ENTRYPOINT ["/code/entrypoint.sh"]