forked from BlueOS-community/QuickStart-Python-Extension
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
59 lines (50 loc) · 1.15 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
52
53
54
55
56
57
58
59
FROM python:3.11-slim
# RUN apt-get update && \
# apt-get -y install gcc && \
# rm -rf /var/lib/apt/lists/*
COPY app /app
RUN python -m pip install /app --extra-index-url https://www.piwheels.org/simple
EXPOSE 5420/tcp
LABEL version="1.0.1"
ARG IMAGE_NAME
LABEL permissions='\
{\
"ExposedPorts": {\
"5420/tcp": {}\
},\
"HostConfig": {\
"Binds":["/usr/blueos/extensions/ping-survey:/app/logs"],\
"ExtraHosts": ["host.docker.internal:host-gateway"],\
"PortBindings": {\
"5420/tcp": [\
{\
"HostPort": ""\
}\
]\
}\
}\
}'
ARG AUTHOR
ARG AUTHOR_EMAIL
LABEL authors='[\
{\
"name": "Tony White",\
"email": "[email protected]"\
}\
]'
ARG MAINTAINER
ARG MAINTAINER_EMAIL
LABEL company='{\
"about": "",\
"name": "Blue Robotics",\
"email": "[email protected]"\
}'
LABEL type="tool"
ARG REPO
ARG OWNER
LABEL readme='https://raw.githubusercontent.com/vshie/pingSurvey/{tag}/README.md'
LABEL links='{\
"source": "https://github.com/vshie/pingSurvey"\
}'
LABEL requirements="core >= 1.1"
ENTRYPOINT ["python", "-u", "/app/main.py"]