-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 1.27 KB
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
#
# How to compile: docker build -t tinyarrows .
#
# How to run: docker run -v /Users/bylaska/Public/mariadb:/var/lib/mysql -v /Users/bylaska/Public/TinyArrows/archive:/TinyArrows/archive -p 5001:5001 -p 3306:3306 tinyarrows
#
# How to stop:
# docker ps
# docker stop 7cf7c0ae34b6 ..... where the container ID is 7cf7c0ae34b6
#
# To remove all Docker images, you can use the docker rmi command with the -f (force) option
# and the output of docker images -q (which lists only the IDs of all images). Here's how you can do it:
# docker rmi -f $(docker images -q)
#
#bylaska@Erics-MacBook-Pro TinyArrows % docker images
#REPOSITORY TAG IMAGE ID CREATED SIZE
#tinyarrows latest 801e0651d84c 34 minutes ago 2.16GB
#<none> <none> a784918828d1 53 minutes ago 2.16GB
#mongo latest 9001035f35d3 11 days ago 624MB
FROM python:3-slim-buster
WORKDIR /TinyArrows
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
# Install Open Babel
RUN apt-get update && apt-get install -y --no-install-recommends \
openbabel gnuplot \
&& apt-get install -y openjdk-11-jdk vim \
&& rm -rf /var/lib/apt/lists/*
COPY . .
CMD [ "python3", "Public/app3.py"]