code fs, _ := fs.Sub(staticFs, ui/dist) file directory not exist (#98)

* update `html` to `ui`

* add `node` version

* fixed `fs, _ := fs.Sub(staticFs, ui/dist)` used file directory not exist at build time
This commit is contained in:
linG
2021-12-17 00:22:51 -06:00
committed by GitHub
parent 21d3f4748f
commit 18ecdb50ef
+2 -2
View File
@@ -6,11 +6,11 @@ RUN npm install && npm run build
FROM golang:alpine
WORKDIR /build
COPY . ./
COPY --from=0 /build/dist /build/dist
COPY --from=0 /build/dist /build/ui/dist
RUN apk update && \
apk add git gcc linux-pam-dev libc-dev && \
go get -v github.com/rakyll/statik && \
statik -src=/build/dist && \
statik -src=/build/ui/dist && \
go build -ldflags "-w -s"
FROM alpine