include nginx on main image

This commit is contained in:
FuzzyGrim
2023-02-01 13:54:15 +01:00
parent 7b0b8514e8
commit d3512989b8
8 changed files with 86 additions and 97 deletions

View File

@@ -5,15 +5,18 @@ ENV PYTHONDONTWRITEBYTECODE 1
WORKDIR /app
COPY ./requirements.txt /requirements.txt
COPY install-nginx-debian.sh /install-nginx-debian.sh
RUN apt-get update && apt-get install -y --no-install-recommends g++ gcc gosu && \
bash /install-nginx-debian.sh && \
pip install --no-cache-dir --upgrade -r /requirements.txt && \
rm -rf /var/lib/apt/lists/* && \
apt-get remove -y --purge g++ gcc && apt-get autoremove -y && \
gosu nobody true
COPY ./entrypoint.sh /entrypoint.sh
COPY ./default.conf /etc/nginx/conf.d/default.conf
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh && \
groupmod -g 1000 users && \
useradd -u 911 -U -M -s /bin/bash abc && \
@@ -21,4 +24,6 @@ RUN chmod +x /entrypoint.sh && \
COPY src ./
STOPSIGNAL SIGQUIT
CMD ["/entrypoint.sh"]