Modify PYTHONPATH

This commit is contained in:
Tris Forster 2026-05-23 21:46:51 +10:00
parent 947626c2af
commit eeb35ce4f6
2 changed files with 5 additions and 3 deletions

View File

@ -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"]

View File

@ -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