Doodle_Game / Dockerfile
MBG0903's picture
Update Dockerfile
743f440 verified
raw
history blame contribute delete
566 Bytes
FROM python:3.9
# Workdir inside the container
WORKDIR /app
# Install deps first (better cache)
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Streamlit needs a writable home (for machine_id, etc.)
ENV HOME=/tmp
RUN mkdir -p /tmp/.streamlit && chmod -R 777 /tmp/.streamlit
# Copy the entire repo (so /app now contains /src and any root files)
COPY . /app
# Expose Streamlit port
EXPOSE 8501
# Run the app from src/app.py
CMD ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]