From 229b274d975cdfa6f1cd07db5ee5430ac23ee4f0 Mon Sep 17 00:00:00 2001 From: IgorVolochay Date: Sat, 1 Feb 2025 23:51:45 +0300 Subject: [PATCH] Create Dockerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9bed9ab --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM python:3.10-alpine + +WORKDIR /app + +COPY ./app . + +RUN python3 -m venv venv +RUN source venv/bin/activate +RUN pip3 install -r requirements.txt +RUN pip3 install "fastapi[all]" + +EXPOSE 8000 + +CMD ["fastapi", "run", "--port", "8000", "main.py"] \ No newline at end of file