Files
ThreatHunt/backend/Dockerfile
kirby.is.austin9@gmail.com 5c1dc5cd15 Dockerized the application.
2025-06-18 09:02:57 +02:00

27 lines
449 B
Docker

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"]