docker: change container to work with esc #19
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue