Dockerized the application.

This commit is contained in:
kirby.is.austin9@gmail.com
2025-06-18 09:02:57 +02:00
parent 1570c4dc7a
commit 5c1dc5cd15
11 changed files with 4280 additions and 735 deletions

27
backend/Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM python:3.13-slim
RUN apt-get update && apt-get install -y \
gcc \
g++ \
python3-dev \
curl \
libmagic1 \
build-essential \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
RUN adduser --disabled-password --no-create-home appuser
USER appuser
ENV PYTHONUNBUFFERED=1
EXPOSE 5000
CMD ["python", "app.py"]

View File

@@ -1,9 +1,11 @@
flask==3.0.0
flask-cors==4.0.0
uvicorn==0.34.0
python-dotenv==1.0.0
pandas==2.1.3
pandas==2.3.0
requests==2.31.0
python-magic-bin==0.4.14
python-magic==0.4.27; sys_platform != 'win32'
python-magic-bin==0.4.14; sys_platform == 'win32'
validators==0.22.0
celery==5.3.4
redis==5.0.1