mtle_hw2 / Dockerfile
zyliu's picture
add dockerfile
ca9eab4
raw
history blame
No virus
320 Bytes
# Use the official Python image as a base image
FROM python:3.8-slim-buster
# Install MongoDB
RUN apt-get update && apt-get install -y mongodb
# Copy the app code to the image
COPY . /app
WORKDIR /app
# Install the app dependencies
RUN pip install -r requirements.txt
# Run the app
CMD ["streamlit", "run", "app.py"]