Files
HangmanLab.Backend/Dockerfile
2024-12-06 15:13:20 +00:00

20 lines
318 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
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app/
EXPOSE 5000
CMD ["python", "app.py"]