Separated install script to avoid launch errors

This commit is contained in:
2022-06-22 11:20:30 +01:00
parent 91dc93758a
commit 591b868920
4 changed files with 35 additions and 37 deletions

View File

@ -2,4 +2,5 @@ FROM python:3.10-slim
WORKDIR /ref-test
COPY . .
RUN pip install --upgrade pip && pip install -r requirements.txt
RUN chmod +x install.py && ./install.py
CMD [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "5", "wsgi:app" ]