Merge pull request #86 from smalot/fix-packr-path
Fix packr path dependency
This commit is contained in:
commit
4bdb74411c
3 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ COPY frontend/ /app
|
||||||
RUN cd /app && npm install && npm run build
|
RUN cd /app && npm install && npm run build
|
||||||
|
|
||||||
FROM golang:1.14.2-buster AS backend-builder
|
FROM golang:1.14.2-buster AS backend-builder
|
||||||
RUN go get -u github.com/gobuffalo/packr/v2/packr2
|
RUN go get -u github.com/gobuffalo/packr/packr2
|
||||||
COPY --from=frontend-builder /app/static /app/frontend/static
|
COPY --from=frontend-builder /app/static /app/frontend/static
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN cd /app && packr2 && env CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags='-linkmode external -extldflags "-static" -s -w' -o ovpn-admin && packr2 clean
|
RUN cd /app && packr2 && env CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags='-linkmode external -extldflags "-static" -s -w' -o ovpn-admin && packr2 clean
|
||||||
|
|
|
@ -9,5 +9,5 @@ apt-get install -y nodejs
|
||||||
|
|
||||||
PATH=$PATH:~/go/bin
|
PATH=$PATH:~/go/bin
|
||||||
|
|
||||||
go get -u github.com/gobuffalo/packr/v2/packr2
|
go get -u github.com/gobuffalo/packr/packr2
|
||||||
|
|
||||||
|
|
|
@ -9,5 +9,5 @@ apt-get install -y nodejs
|
||||||
|
|
||||||
PATH=$PATH:~/go/bin
|
PATH=$PATH:~/go/bin
|
||||||
|
|
||||||
go get -u github.com/gobuffalo/packr/v2/packr2
|
go get -u github.com/gobuffalo/packr/packr2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue