shashidj's picture
Deploy Predictive Maintenance application
df27ea9 verified
raw
history blame contribute delete
349 Bytes
FROM python:3.10-slim
WORKDIR /code
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN useradd -m appuser && chown -R appuser:appuser /code
USER appuser
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]