File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ FROM python:3.11-slim AS builder
1111ENV PYTHONDONTWRITEBYTECODE 1
1212ENV PYTHONUNBUFFERED 0
1313ENV DockerHOME=/home/rsstranslator
14+ ENV PORT=8000
1415RUN mkdir -p $DockerHOME/data
1516WORKDIR $DockerHOME
1617COPY . $DockerHOME
@@ -22,5 +23,5 @@ RUN pip install -r requirements/dev.txt --no-cache-dir -U && \
2223 find $DockerHOME -type d -name "__pycache__" -exec rm -r {} + && \
2324 rm -rf $DockerHOME/.cache/pip
2425HEALTHCHECK --interval=10s --timeout=5s --retries=3 --start-period=20s CMD pgrep -f "python manage.py run_huey" || exit 1
25- EXPOSE 8000
26- CMD python manage.py init_server && python manage.py run_huey -f & uvicorn config.asgi:application --host 0.0.0.0
26+ EXPOSE ${PORT}
27+ CMD python manage.py init_server && python manage.py run_huey -f & uvicorn config.asgi:application --host 0.0.0.0 --port ${PORT}
You can’t perform that action at this time.
0 commit comments