File size: 443 Bytes
f428ac8 96b9c70 f428ac8 96b9c70 f428ac8 96b9c70 f428ac8 794513b 96b9c70 f428ac8 96b9c70 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Gunakan base image Python versi 3.10.10
FROM python:3.10.10
# Set working directory di dalam kontainer
WORKDIR /app
# Salin file requirements.txt dan install dependencies
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
# Salin file utama aplikasi Flask dan direktori templates
COPY app.py .
COPY templates/index.html
# Command untuk menjalankan aplikasi Flask ketika kontainer dimulai
CMD ["python", "app.py"]
|