Skip to content

Commit 99635dc

Browse files
Merge pull request #94 from socraticDevBlog/20250411-settingupfastapibackend
20250411 settingupfastapibackend
2 parents c08c2ff + 99e1e90 commit 99635dc

File tree

5 files changed

+874
-0
lines changed

5 files changed

+874
-0
lines changed

backend/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM python:3.13.3-slim
2+
3+
WORKDIR /app
4+
5+
COPY Pipfile Pipfile.lock ./
6+
COPY app ./app
7+
8+
RUN pip install --no-cache-dir pipenv
9+
10+
ENV PIPENV_VENV_IN_PROJECT=1
11+
12+
RUN pipenv install --dev
13+
14+
EXPOSE 8000
15+
16+
CMD ["pipenv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]

backend/Pipfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
fastapi = {extras = ["standard"], version = "*"}
8+
9+
[dev-packages]
10+
black = "*"

0 commit comments

Comments
 (0)