diff --git a/docker/Dockerfile b/docker/Dockerfile index 12b0c3d..782b225 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:edge +FROM golang:alpine RUN apk add --no-cache git RUN apk add --no-cache musl-dev @@ -27,8 +27,7 @@ ENV TZ America/New_York # RUN yarn global add @vue/cli RUN cd $SRC_DIR/frontend; yarn && yarn build -RUN go get -u github.com/gobuffalo/packr/v2/packr2 -RUN cd $SRC_DIR; $HOME/go/bin/packr2 -RUN cd $SRC_DIR; go get ./...; go build -o /app/cabinet +RUN go get -u github.com/mjibson/esc +RUN cd $SRC_DIR; go generate && go get ./... && go build -o /app/cabinet ENTRYPOINT ["/app/cabinet", "-httpAddr=0.0.0.0:5673", "-db=/app/var/cabinet.db"] diff --git a/esc_gen.go b/esc_gen.go index b775ffc..d13e45b 100644 --- a/esc_gen.go +++ b/esc_gen.go @@ -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