-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdockerbuild_info
80 lines (58 loc) · 1.85 KB
/
dockerbuild_info
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Ansibletasker:
----
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
ansibletasker latest b6a39579b89d 11 minutes ago 287MB
alpine 3.7 e21c333399e0 3 weeks ago 4.14MB
----
FROM alpine:3.7
RUN apk add --update \
python3 \
python3-dev \
build-base \
libffi-dev \
openssl-dev \
&& rm -rf /var/cache/apk/*
WORKDIR /app
COPY . .
RUN pip3 install --no-cache-dir -r project/requirements.txt
RUN python3 project/db_create.py
EXPOSE 5000
CMD ["python3", "project/run.py"]
---------------------------------
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
ansibletasker latest 7c4a39c1821a 39 seconds ago 306MB
python 3.6-alpine 024992483c59 5 days ago 92.1MB
---
FROM python:3.6-alpine
RUN apk add --update \
build-base \
libffi-dev \
openssl-dev \
&& rm -rf /var/cache/apk/*
WORKDIR /app
COPY . .
RUN pip3 install --no-cache-dir -r project/requirements.txt
RUN python3 project/db_create.py
EXPOSE 5000
CMD ["python3", "project/run.py"]
---------------------------------
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
ansibletasker latest 28a4e39667f3 Less than a second ago 310MB
python 3.6-alpine3.7 6b691f9a252f 5 days ago 83.4MB
---
FROM python:3.6-alpine3.7
RUN apk add --update \
build-base \
libffi-dev \
openssl-dev \
&& rm -rf /var/cache/apk/*
WORKDIR /app
COPY . .
RUN pip3 install --no-cache-dir -r project/requirements.txt
RUN python3 project/db_create.py
EXPOSE 5000
CMD ["python3", "project/run.py"]
---------------------------------