Modify PYTHONPATH
This commit is contained in:
parent
947626c2af
commit
eeb35ce4f6
@ -12,13 +12,13 @@ ENV PATH="${TARGET}/bin:$PATH"
|
|||||||
|
|
||||||
COPY dist/${RELEASE} .
|
COPY dist/${RELEASE} .
|
||||||
RUN pip3 install ${RELEASE} --no-cache-dir
|
RUN pip3 install ${RELEASE} --no-cache-dir
|
||||||
|
RUN pip3 install gunicorn whitenoise
|
||||||
|
|
||||||
WORKDIR ${TARGET}
|
WORKDIR ${TARGET}
|
||||||
|
|
||||||
RUN SECRET_KEY=_ poly-tool collectstatic --noinput
|
RUN SECRET_KEY=_ poly-tool collectstatic --noinput
|
||||||
|
|
||||||
VOLUME ["/var/polyphonic"]
|
VOLUME ["/var/polyphonic"]
|
||||||
|
EXPOSE 8000/tcp
|
||||||
RUN pip3 install gunicorn whitenoise
|
|
||||||
|
|
||||||
CMD ["gunicorn", "-b", "0.0.0.0", "polyphonic.wsgi"]
|
CMD ["gunicorn", "-b", "0.0.0.0", "polyphonic.wsgi"]
|
||||||
|
|||||||
@ -6,6 +6,8 @@ services:
|
|||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/var/polyphonic"
|
- "./data:/var/polyphonic"
|
||||||
|
- "./local_settings.py:/opt/polyphonic/local_settings.py"
|
||||||
env_file: "compose.env"
|
env_file: "compose.env"
|
||||||
environment:
|
environment:
|
||||||
DJANGO_SETTINGS_MODULE: polyphonic.settings.docker
|
DJANGO_SETTINGS_MODULE: local_settings
|
||||||
|
PYTHONPATH: /opt/polyphonic
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user