Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tests
__pycache__
__init__.py
README.md
requirements.dev.txt
requirements-dev.txt
.gitignore
Dockerfile
.env.**
Expand Down
19 changes: 8 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
FROM python:3.13.5-bullseye

WORKDIR /app/backend

RUN apt update && apt install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m backend-user
WORKDIR /home/backend-user/backend
COPY . .

RUN apt update && apt upgrade -y

RUN pip install --upgrade pip

RUN pip install --no-cache-dir --no-input -r requirements.txt

RUN pip install --upgrade pip \
&& pip install --no-cache-dir --no-input -r requirements.txt
RUN chown -R backend-user:backend-user /home/backend-user
USER backend-user
EXPOSE 80

CMD ["fastapi", "run", "./app/main.py", "--host", "0.0.0.0", "--port", "80"]
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ requests==2.32.4
rich==14.0.0
rich-toolkit==0.14.8
rsa==4.9.1
scikit-learn==1.6.1
shellingham==1.5.4
sniffio==1.3.1
starlette==0.46.2
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ requests==2.32.4
rich==14.0.0
rich-toolkit==0.14.8
rsa==4.9.1
scikit-learn==1.6.1
shellingham==1.5.4
sniffio==1.3.1
starlette==0.46.2
Expand Down