File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Python 3.7 Dockerfile
2- FROM python:3.7-bullseye
3-
4- # Add MongoDB official repository
5- RUN apt-get update && apt-get install -y gnupg curl && \
6- curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \
7- echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" > /etc/apt/sources.list.d/mongodb-org-4.4.list && \
8- apt-get update
9-
10- # Install MongoDB 4.4
11- RUN apt-get install -y \
12- mongodb-org=4.4.24 \
13- && rm -rf /var/lib/apt/lists/*
2+ FROM mcr.microsoft.com/devcontainers/python:3.7
143
154# Install Python packages
165RUN pip install --no-cache-dir \
176 Flask==2.2.5 \
18- pymongo==3.13.0 \
197 notebook==6.5.6
208
21- CMD ["python3" ]
9+ CMD ["python3" ]
Original file line number Diff line number Diff line change 11# Python 3.11 Dockerfile
2- FROM python:3.11-slim
2+ FROM mcr.microsoft.com/devcontainers/ python:3.11
33
44# Install any additional dependencies here
55RUN apt-get update && apt-get install -y \
Original file line number Diff line number Diff line change 11# Python 3.11 Dockerfile
2- FROM python:3.11-slim
3-
4- # Install any additional dependencies here
5- RUN apt-get update && apt-get install -y \
6- && rm -rf /var/lib/apt/lists/*
2+ FROM mcr.microsoft.com/devcontainers/python:3.11
73
84# Install Python packages
95RUN pip install --no-cache-dir \
You can’t perform that action at this time.
0 commit comments