-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (44 loc) · 1.44 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Dockerfile for pfmongo.
#
# Build with
#
# docker build -t <name> .
#
# For example if building a local version, you could do:
#
# docker build --build-arg UID=$UID -t local/pfmongo .
#
# In the case of a proxy (located at say 10.41.13.4:3128), do:
#
# export PROXY="http://10.41.13.4:3128"
# docker build --build-arg http_proxy=$PROXY --build-arg UID=$UID -t local/pfmongo .
#
# To run an interactive shell inside this container, do:
#
# docker run -ti --entrypoint /bin/bash local/pfmongo
#
# To pass an env var HOST_IP to the container, do:
#
# docker run -ti -e HOST_IP=$(ip route | grep -v docker | awk '{if(NF==11) print $9}') --entrypoint /bin/bash local/pfmongo
#
FROM docker.io/python:3.11.0-slim-bullseye
LABEL DEVELOPMENT=" \
docker run --rm -it \
-v $PWD/pfmongo:/pfmongo:ro local/pfmongo \
"
WORKDIR /pfmongo
ENV DEBIAN_FRONTEND=noninteractive
COPY . $WORKDIR
# COPY requirements.txt $WORKDIR/requirements.txt
RUN pip install --upgrade pip
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install tzlocal
RUN pip install ipython
# COPY . $WORKDIR
# COPY setup.py $WORKDIR/setup.py
RUN pip install -U ./
RUN apt update && \
apt-get install -y apt-transport-https && \
apt -y install vim telnet netcat procps
CMD [ "pfmongo", "--man" ]