hello_server / Dockerfile
Techbitforge's picture
Update Dockerfile
a9425db verified
# Use lightweight Python image
FROM python:3.10-slim
# Environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Working directory
WORKDIR /app
# Copy requirements first (better caching)
COPY requirements.txt .
# Install Python deps
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY app.py .
# Expose HF port
EXPOSE 7860
# start Flask server
CMD python app.py