Update docker django image
This commit is contained in:
parent
59f719d7c3
commit
ef0c070755
1 changed files with 3 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ RUN mkdir /app/logs
|
||||||
RUN mkdir /app/media
|
RUN mkdir /app/media
|
||||||
RUN mkdir /app/bin
|
RUN mkdir /app/bin
|
||||||
|
|
||||||
COPY --from=backend /usr/local/lib/python3.9 /usr/local/lib/python3.9
|
COPY --from=backend /usr/local/lib/python3.11 /usr/local/lib/python3.11
|
||||||
COPY --from=backend /usr/local/bin/gunicorn /usr/local/bin/gunicorn
|
COPY --from=backend /usr/local/bin/gunicorn /usr/local/bin/gunicorn
|
||||||
COPY --from=backend /usr/local/bin/celery /usr/local/bin/celery
|
COPY --from=backend /usr/local/bin/celery /usr/local/bin/celery
|
||||||
COPY --from=backend /app/src/ /app/src/
|
COPY --from=backend /app/src/ /app/src/
|
||||||
|
|
@ -93,11 +93,11 @@ RUN mkdir /app/bin
|
||||||
|
|
||||||
COPY ./requirements /app/requirements
|
COPY ./requirements /app/requirements
|
||||||
COPY ./bin/docker-entrypoint.sh /app/bin/docker-entrypoint.sh
|
COPY ./bin/docker-entrypoint.sh /app/bin/docker-entrypoint.sh
|
||||||
COPY --from=backend /usr/local/lib/python3.9 /usr/local/lib/python3.9
|
COPY --from=backend /usr/local/lib/python3.11 /usr/local/lib/python3.11
|
||||||
COPY --from=backend /usr/local/bin/celery /usr/local/bin/celery
|
COPY --from=backend /usr/local/bin/celery /usr/local/bin/celery
|
||||||
COPY --from=backend /app/src/ /app/src/
|
COPY --from=backend /app/src/ /app/src/
|
||||||
|
|
||||||
RUN pip install -r requirements/production.txt -r requirements/development.txt
|
RUN pip install -r requirements/development.txt
|
||||||
|
|
||||||
RUN useradd -M -u 1000 newsreader
|
RUN useradd -M -u 1000 newsreader
|
||||||
RUN chown -R newsreader:newsreader /app
|
RUN chown -R newsreader:newsreader /app
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue