-
Notifications
You must be signed in to change notification settings - Fork 307
/
Dockerfile
30 lines (22 loc) · 1.05 KB
/
Dockerfile
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
ARG OWNER=jupyter
ARG BASE_CONTAINER=$OWNER/pyspark-notebook:spark-3.2.0
FROM $BASE_CONTAINER
LABEL maintainer="Russell Jurney <[email protected]>"
# Fix DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER root
# Install the MongoDB Client CLI
RUN apt-get update --yes && \
sudo apt-get install -y iputils-ping gnupg curl jq && \
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - && \
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list && \
sudo apt-get update && \
sudo apt-get install -y mongodb-mongosh mongodb-org-tools && \
echo "mongodb-mongosh hold" | sudo dpkg --set-selections && \
echo "mongodb-org-tools hold" | sudo dpkg --set-selections && \
apt-get clean
RUN pip install poetry
COPY pyproject.toml /home/jovyan/pyproject.toml
COPY poetry.lock /home/jovyan/poetry.lock
COPY requirements.txt /home/jovyan/requirements.txt
RUN poetry install && pip install -r requirements.txt