File size: 1,079 Bytes
ca9eab4 e5f1a98 c965bad ca9eab4 e5f1a98 90e2754 e5f1a98 b80e9e5 e5f1a98 b80e9e5 e5f1a98 b80e9e5 e5f1a98 ca9eab4 ab29a28 3b23a91 a1b0a38 ca9eab4 b1f0efa ca9eab4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # Use the official Python image as a base image
# FROM python:3.8-slim-buster
# FROM mongo:latest
FROM mongo
EXPOSE 27017
# RUN apt-get update
# RUN apt-get install -y gnupg curl
# RUN curl -fsSL https://pgp.mongodb.com/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
# RUN echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.org/apt/debian bullseye/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list
# # Install MongoDB
# RUN apt-get update && apt-get install -y mongodb-org
# RUN mkdir -p /data/db
# RUN chown -R mongodb:mongodb /data/db
# # RUN service mongodb start
# RUN service mongod start
# RUN apt-get -y update && apt-get install -y software-properties-common \
# && add-apt-repository ppa:deadsnakes/ppa && apt install -y python3.10
RUN apt-get update && apt-get install -y python3.9 python3.9-dev
# 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"] |