ORBIT / Dockerfile
xenux4u's picture
Upload 5 files
6490a0d verified
raw
history blame contribute delete
433 Bytes
# Gunakan Python versi ringan
FROM python:3.10-slim
# Buat folder kerja di dalam server
WORKDIR /app
# Copy daftar library dan install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy seluruh file proyekmu (kecuali .env)
COPY . .
# Hugging Face wajib menggunakan port 7860
EXPOSE 7860
# Perintah untuk menjalankan Flask
ENV FLASK_APP=app.py
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]