-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
67 lines (62 loc) · 1.91 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
61
62
63
64
65
66
67
FROM alpine:3.19
ARG TARGETARCH
# Install simple http server
RUN apk add --no-cache wget
RUN if [ "$TARGETARCH" = "amd64" ]; then \
wget https://github.com/TheWaWaR/simple-http-server/releases/download/v0.6.6/x86_64-unknown-linux-musl-simple-http-server -O /usr/bin/simple-http-server; \
elif [ "$TARGETARCH" = "arm64" ]; then \
wget https://github.com/TheWaWaR/simple-http-server/releases/download/v0.6.6/aarch64-unknown-linux-musl-simple-http-server -O /usr/bin/simple-http-server; \
elif [ "$TARGETARCH" = "arm" ]; then \
wget https://github.com/TheWaWaR/simple-http-server/releases/download/v0.6.6/armv7-unknown-linux-musleabihf-simple-http-server -O /usr/bin/simple-http-server; \
else \
echo "Unsupported architecture: $TARGETARCH"; exit 1; \
fi
RUN chmod +x /usr/bin/simple-http-server
LABEL authors='[\
{\
"name": "Rafael Araujo Lehmkuhl",\
"email": "[email protected]"\
},\
{\
"name": "Patrick José Pereira",\
"email": "[email protected]"\
},\
{\
"name": "Arturo Manzoli",\
"email": "[email protected]"\
}\
]'
LABEL company='{\
"about": "",\
"name": "Blue Robotics",\
"email": "[email protected]"\
}'
LABEL permissions='{\
"ExposedPorts": {\
"8000/tcp": {}\
},\
"HostConfig": {\
"PortBindings": {\
"8000/tcp": [\
{\
"HostPort": ""\
}\
]\
}\
}\
}'
LABEL type="other"
LABEL tags='[\
"vehicle-control",\
"control-station",\
"ground-station",\
"navigation",\
"joystick",\
"mission-planning"\
]'
LABEL links='{\
"support": "https://discuss.bluerobotics.com/c/bluerobotics-software"\
}'
LABEL readme="https://raw.githubusercontent.com/bluerobotics/cockpit/master/README.md"
COPY ./dist /cockpit
ENTRYPOINT ["simple-http-server", "--index", "cockpit"]