docker: change container to work with esc #19

Merged
cws merged 1 commits from docker into master 2020-03-17 14:37:07 +00:00
2 changed files with 4 additions and 5 deletions

View File

@ -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"]

View File

@ -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