Dockerfile
# syntax=docker/dockerfile:1ARG PYTHON_VERSION FROM node:16 as frontend WORKDIR /frontendCOPY package-lock.json package.json ./RUN npm install COPY vite.config.js ./COPY frontend ./frontendRUN npm run build FROM python:${PYTHON_VERSION}-alpineENV PIP_NO_CACHE_DIR offENV PYTHONUNBUFFERED 1 WORKDIR /appCOPY requirements.txt ./ # hadolint ignore=DL3018RUN \ set -ex; \ apk add --no-cache tini postgresql-libs jpeg-dev && \ apk add --no-cache --virtual build-dependencies curl postgresql-dev libstdc++ zlib-dev build-base && \ pip install --no-cache-dir -r requirements.txt && \ apk del build-dependencies && \ find /usr/local -depth -type f -a \( -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' +; # User-accessible environmentENV ENVIRONMENT=PRODUCTIONENV DJANGO_ALLOWED_HOSTS=127.0.0.1 COPY Procfile ./COPY manage.py ./COPY bin ./binCOPY --from=frontend /frontend/frontend/dist ./frontend/distCOPY tapedrive ./tapedriveCOPY listeners ./listenersCOPY podcasts ./podcasts RUN python manage.py collectstatic --no-input EXPOSE 8273VOLUME /app /dataENTRYPOINT [ "tini", "--", "./bin/entrypoint.sh" ]CMD ["honcho", "start"]