-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (25 loc) · 681 Bytes
/
Dockerfile
File metadata and controls
29 lines (25 loc) · 681 Bytes
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
FROM node:25 AS build-node
ADD ./react /react
WORKDIR /react
RUN rm -rf /react/node_modules && \
cd /react && \
npm config set registry http://registry.npmjs.org/ && \
npm config set loglevel warn && \
cd /react && \
npm install --silent && \
npm run build:prod
FROM golang:alpine AS build-go
ENV GOPATH=""
RUN go env -w GOPROXY=direct
RUN apk add git python3
WORKDIR /build
ADD go.mod go.sum ./
RUN go mod download
ADD . .
COPY --from=build-node /react /build/react
RUN python3 ./gobuild.py -o things-gui
FROM alpine:latest
COPY --from=build-go /build/things-gui ./things-gui
EXPOSE 5000
VOLUME ["/root/.config/ThingsGUI"]
ENTRYPOINT [ "./things-gui" ]