Updated dockerfiles

This commit is contained in:
Tris Forster 2026-07-13 08:50:57 +10:00
parent 4a22264d3f
commit abb66f7b40
2 changed files with 7 additions and 4 deletions

View File

@ -1,8 +1,10 @@
FROM alpine:latest FROM alpine:latest
ARG VERSION=0.8.4
ENV TARGET=/opt/polyphonic ENV TARGET=/opt/polyphonic
ENV RELEASE=polyphonic-0.8.4-py3-none-any.whl #ENV RELEASE=polyphonic-${VERSION}-py3-none-any.whl
#ENV RELEASE=git+https://gitea.tfconsulting.com.au/projects/polyphonic.git ENV RELEASE=git+https://gitea.tfconsulting.com.au/projects/polyphonic.git@${VERSION}
RUN apk add --no-cache python3 py3-pip git ghostscript sqlite RUN apk add --no-cache python3 py3-pip git ghostscript sqlite
@ -11,7 +13,7 @@ WORKDIR /root
RUN python3 -m venv ${TARGET} RUN python3 -m venv ${TARGET}
ENV PATH="${TARGET}/bin:$PATH" 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 RUN pip3 install gunicorn whitenoise

View File

@ -1,7 +1,7 @@
services: services:
polyphonic: polyphonic:
image: "polyphonic:0.8.4" image: "polyphonic:0.8.4"
build: "." build: .
ports: ports:
- "8001:8000" - "8001:8000"
volumes: volumes:
@ -12,3 +12,4 @@ services:
DJANGO_SETTINGS_MODULE: local_settings DJANGO_SETTINGS_MODULE: local_settings
PYTHONPATH: /opt/polyphonic PYTHONPATH: /opt/polyphonic
WORK_DIR: /var/polyphonic WORK_DIR: /var/polyphonic
VERSION: 0.8.4