aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth@simponic.xyz>2024-08-07 19:46:46 -0700
committerElizabeth Hunt <elizabeth@simponic.xyz>2024-08-07 19:46:46 -0700
commit6f03348e5aac33118840324a96e9321dca483b9f (patch)
treea40d550cefce75bc882c506d5ead80e39228a990 /Dockerfile
downloadkennel.hatecomputers.club-6f03348e5aac33118840324a96e9321dca483b9f.tar.gz
kennel.hatecomputers.club-6f03348e5aac33118840324a96e9321dca483b9f.zip
initial commit that i did NOT steal from anywhere
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d9d599d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+FROM python:3.12 as requirements-stage
+WORKDIR /tmp
+RUN pip install poetry
+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"]