mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-29 13:04:05 +03:00
parent
095d7417b8
commit
9037fb57f3
|
@ -8,10 +8,6 @@ RUN pip install -r /requirements/production.txt \
|
||||||
&& groupadd -r django \
|
&& groupadd -r django \
|
||||||
&& useradd -r -g django django
|
&& useradd -r -g django django
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
RUN chown -R django /app
|
|
||||||
USER django
|
|
||||||
|
|
||||||
COPY ./compose/django/gunicorn.sh /gunicorn.sh
|
COPY ./compose/django/gunicorn.sh /gunicorn.sh
|
||||||
COPY ./compose/django/entrypoint.sh /entrypoint.sh
|
COPY ./compose/django/entrypoint.sh /entrypoint.sh
|
||||||
RUN sed -i 's/\r//' /entrypoint.sh \
|
RUN sed -i 's/\r//' /entrypoint.sh \
|
||||||
|
@ -21,6 +17,11 @@ RUN sed -i 's/\r//' /entrypoint.sh \
|
||||||
&& chmod +x /gunicorn.sh \
|
&& chmod +x /gunicorn.sh \
|
||||||
&& chown django /gunicorn.sh
|
&& chown django /gunicorn.sh
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
RUN chown -R django /app
|
||||||
|
USER django
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user