-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 739 Bytes
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
# Use Python 3.8-slim as the base image
FROM python:3.8-slim
# Install bgpdump
RUN apt-get update && apt-get install -y --no-install-recommends \
bgpdump \
&& rm -rf /var/lib/apt/lists/*
# Install python modules
RUN pip3 install numpy networkx pandas gprof2dot psutil requests-cache
# Set the project
WORKDIR /app
COPY main.py rib_table.py url_generation.py .
COPY observers ./observers
COPY configs ./configs
ENTRYPOINT ["python3", "main.py"]
# Build with
# docker build -t quickrib .
# Development container
# docker run --name quickrib_dev -it -v $(pwd):/app --entrypoint bash quickrib
# Production container
# docker run --rm --name quickrib_prod -v $(pwd)/config.py:/app/configs/config.py -v $(pwd):/app/data quickrib