forked from bluerobotics/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (56 loc) · 1.47 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
# Build frontend
FROM --platform=$BUILDPLATFORM oven/bun:1.0.3-slim AS frontendBuilder
RUN mkdir /frontend && ls /frontend
COPY . /frontend
RUN bun install --cwd /frontend
RUN bun run --cwd /frontend build
FROM alpine:3.14
# Install simple http server
RUN apk add --no-cache wget
RUN 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
RUN chmod +x /usr/bin/simple-http-server
LABEL authors='[\
{\
"name": "Rafael Araujo Lehmkuhl",\
"email": "[email protected]"\
},\
{\
"name": "Patrick José Pereira",\
"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"\
}'
# Copy frontend built on frontendBuild to this stage
COPY --from=frontendBuilder /frontend/dist /cockpit
ENTRYPOINT ["simple-http-server", "--index", "cockpit"]