Add new index page
All checks were successful
release-nightly / release-image (push) Has been cancelled
release-tag / release-image (push) Successful in 20m28s

This commit was merged in pull request #6.
This commit is contained in:
2023-09-05 00:07:21 +02:00
parent 20535317c7
commit b82724664e
5 changed files with 198 additions and 170 deletions

View File

@@ -6,7 +6,9 @@ FROM base as dev
RUN pip3 install poetry
CMD [ "uvicorn", "projectorpi_web.app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
CMD [ "poetry", "run", "uvicorn", "--app-dir", "projectorpi_web", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
FROM base as prod
@@ -17,6 +19,6 @@ RUN apt-get update && apt-get install -y build-essential \
&& pip3 install --no-cache -r requirements.txt \
&& apt-get remove -y build-essential
ADD projectorpi_web/* ./
ADD projectorpi_web ./projectorpi_web
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80" ]
CMD ["uvicorn", "--app-dir", "projectorpi_web", "app:app", "--host", "0.0.0.0", "--port", "80" ]