diff options
| author | Elizabeth Hunt <elizabeth@simponic.xyz> | 2024-08-07 21:10:01 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth@simponic.xyz> | 2024-08-07 21:10:01 -0700 |
| commit | 9cdb7a145e5bc0167243e4fac0cad0b65533f97b (patch) | |
| tree | 39cc21aa6b50cd7fe1e0792a706463f8b964b59b /Dockerfile | |
| parent | 514b0338844334aa4aaf332c6e29efb6a1aadaa6 (diff) | |
| download | kennel.hatecomputers.club-9cdb7a145e5bc0167243e4fac0cad0b65533f97b.tar.gz kennel.hatecomputers.club-9cdb7a145e5bc0167243e4fac0cad0b65533f97b.zip | |
add ci/cd
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -5,8 +5,10 @@ COPY ./pyproject.toml ./poetry.lock* /tmp/ RUN poetry export -f requirements.txt --output requirements.txt --without-hashes FROM python:3.12 -WORKDIR /code -COPY --from=requirements-stage /tmp/requirements.txt /code/requirements.txt -RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt -COPY kennel /code/src -CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "80"] +WORKDIR /app +COPY --from=requirements-stage /tmp/requirements.txt /app/requirements.txt +RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt +COPY kennel /app/kennel +COPY static /app/static +COPY templates /app/templates +CMD ["uvicorn", "kennel.main:app", "--host", "0.0.0.0", "--port", "8000"] |
