adewopova's picture
Update Dockerfile
63480b8 verified
raw
history blame contribute delete
462 Bytes
FROM python:3.10
WORKDIR /app
# Install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Force protobuf downgrade AFTER all installations
RUN pip install protobuf==3.19.6 --force-reinstall --no-deps
# Set environment variable as backup
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
# Copy app
COPY . .
# Run streamlit
CMD ["streamlit", "run", "accident_app.py", "--server.port=7860", "--server.address=0.0.0.0"]