Spaces:
Running
Running
File size: 328 Bytes
fdeeb34 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Build stage
FROM python:3.10-slim as builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --user --no-cache-dir -r requirements.txt
# Run stage
FROM python:3.10-slim
WORKDIR /app
COPY --from=builder /root/.local /root/.local
COPY . .
ENV PATH=/root/.local/bin:$PATH
ENV PORT=8086
EXPOSE 8086
CMD ["python", "app.py"]
|