mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-03 02:57:01 +00:00
include nginx on main image
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user