-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (26 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
30 lines (26 loc) · 1.17 KB
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
FROM golang:1.23 AS glowdashbuildstage
WORKDIR /glowdash
COPY glowdash/go.mod glowdash/go.sum ./
RUN GO111MODULE=auto go mod download
COPY glowdash/*.go /glowdash/
RUN GO111MODULE=auto CGO_ENABLED=0 GOOS=linux go build -a -o glowdash \
glowdash.go action.go group.go html.go sensors.go schedules.go scheduleedit.go schedulepanel.go \
sensorgraph.go sensorstats.go hwdevice.go intstack.go pagebase.go panelbase.go script.go shading.go \
switch.go toggleswitch.go tools.go thermostat.go launch.go program.go console.go modbustcp.go \
dtzero.go dtcustom.go dtshelly.go dtmodbustcp.go
FROM alpine AS glowdash
LABEL maintainer="hyper80@gmail.com" \
description="GlowDash - Smart Home Web Dashboard"
RUN mkdir /glowdash \
&& mkdir /glowdash/static \
&& mkdir /glowdash/user \
&& mkdir /glowdash/lang \
&& mkdir /glowdash/config
COPY static/* /glowdash/static/
COPY lang/* /glowdash/lang/
COPY --from=glowdashbuildstage /glowdash/glowdash /usr/local/bin
COPY --from=glowdashbuildstage /usr/share/zoneinfo /usr/share/zoneinfo
VOLUME ["/glowdash/user"]
VOLUME ["/glowdash/config"]
WORKDIR /glowdash
CMD ["/usr/local/bin/glowdash","/glowdash/config/running.yml"]