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