FROM python:3.8 ENV GITLAB_HOST=git.zom.bi ENV GITEA_HOST=gitea.zom.bi WORKDIR /usr/src/app RUN useradd migrate RUN mkdir -p /var/data/db && chown -R migrate /var/data RUN apt-get update && apt-get install --yes --no-install-recommends nginx supervisor git RUN pip install gunicorn COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt COPY . /usr/src/app RUN mkdir ./logs && chown -R migrate ./logs && rm -f giteamigrate/settings.py && ln -s ../docker/settings.docker.py giteamigrate/settings.py USER migrate EXPOSE 8000 VOLUME ["/var/data"] ENTRYPOINT ["./docker/entrypoint.sh"]