16 lines
359 B
Docker
16 lines
359 B
Docker
FROM python:3.12-slim
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
WORKDIR /app
|
|
RUN apt-get update &&\
|
|
apt-get install -y default-mysql-client &&\
|
|
apt-get clean &&\
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt ./requirements.txt
|
|
RUN pip install --no-cache-dir -r ./requirements.txt
|
|
COPY . /app/
|
|
EXPOSE 5000
|
|
CMD ["python", "app.py"]
|
|
|