nextjs-challenge / backend / Dockerfile
Dockerfile
Raw
FROM python:3.12-alpine
WORKDIR /app
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
RUN apk add --no-cache gcc musl-dev linux-headers
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
EXPOSE 8080
COPY . .
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]