docker: change container to work with esc
* Also fix esc generate command
This commit is contained in:
parent
e504a660ae
commit
d9a688dbd1
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:edge
|
FROM golang:alpine
|
||||||
|
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
RUN apk add --no-cache musl-dev
|
RUN apk add --no-cache musl-dev
|
||||||
|
@ -27,8 +27,7 @@ ENV TZ America/New_York
|
||||||
|
|
||||||
# RUN yarn global add @vue/cli
|
# RUN yarn global add @vue/cli
|
||||||
RUN cd $SRC_DIR/frontend; yarn && yarn build
|
RUN cd $SRC_DIR/frontend; yarn && yarn build
|
||||||
RUN go get -u github.com/gobuffalo/packr/v2/packr2
|
RUN go get -u github.com/mjibson/esc
|
||||||
RUN cd $SRC_DIR; $HOME/go/bin/packr2
|
RUN cd $SRC_DIR; go generate && go get ./... && go build -o /app/cabinet
|
||||||
RUN cd $SRC_DIR; go get ./...; go build -o /app/cabinet
|
|
||||||
|
|
||||||
ENTRYPOINT ["/app/cabinet", "-httpAddr=0.0.0.0:5673", "-db=/app/var/cabinet.db"]
|
ENTRYPOINT ["/app/cabinet", "-httpAddr=0.0.0.0:5673", "-db=/app/var/cabinet.db"]
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
//go:generate esc -o esc.go -prefix="frontend/dist" frontend/dist
|
//go:generate esc -prefix="frontend/dist" -o esc.go frontend/dist
|
||||||
package main
|
package main
|
||||||
|
|
Loading…
Reference in New Issue