-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
60 lines (54 loc) · 1.4 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
60
# We need gcc to install aiohttp, so we can't use slim
FROM python:3.9-bullseye
# Copy the app
COPY app /app
# Use pip as the build frontend
COPY requirements.txt /app
RUN python -m pip install -r /app/requirements.txt
# For web app:
EXPOSE 8080/tcp
LABEL version="v1.0.0-beta.2"
# Reference:
# https://blueos.cloud/docs/blueos/1.2/development/extensions
# https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerCreate
LABEL permissions='\
{\
"ExposedPorts": {\
"8080/tcp": {},\
},\
"HostConfig": {\
"ExtraHosts": ["host.docker.internal:host-gateway"],\
"PortBindings": {\
"8080/tcp": [\
{\
"HostPort": ""\
}\
]\
}\
},\
"Env": [\
"MAVLINK2REST_URL=http://host.docker.internal/mavlink2rest/v1",\
],\
}'
LABEL authors='[\
{\
"name": "Clyde McQueen",\
"email": "[email protected]"\
}\
]'
LABEL company='{\
"about": "",\
"name": "Discovery Bay",\
"email": "[email protected]"\
}'
LABEL type="tool"
LABEL tags='[\
"surftrak",\
]'
LABEL readme='https://raw.githubusercontent.com/clydemcqueen/surftrak_fixit/{tag}/README.md'
LABEL links='{\
"website": "https://github.com/clydemcqueen/surftrak_fixit",\
"support": "https://github.com/clydemcqueen/surftrak_fixit/issues"\
}'
LABEL requirements="core >= 1.1"
ENTRYPOINT cd /app && python main.py --mavlink2rest_url $MAVLINK2REST_URL