test-api / Dockerfile
Mr-Help's picture
Update Dockerfile
7fbcc7e verified
raw
history blame
386 Bytes
# Use official Python image
FROM python:3.9
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Cache dir for transformers
ENV TRANSFORMERS_CACHE=/app/cache
RUN mkdir -p /app/cache && chmod 777 /app/cache
# 🚫 Ω…ΩΩŠΨ΄ EXPOSE ΩˆΩ„Ψ§ uvicorn
# Run the script
CMD ["python", "main.py"]