Finish removing go rice

This commit is contained in:
Anders Pitman 2021-12-14 15:04:34 -07:00
parent 93647182ad
commit 87cbeb4862
3 changed files with 1 additions and 12 deletions

View File

@ -1,15 +1,13 @@
FROM golang:1.15-alpine3.12 as builder
FROM golang:1.17-alpine3.15 as builder
WORKDIR /build
RUN apk add git
RUN go get github.com/GeertJohan/go.rice/rice
COPY go.* ./
RUN go mod download
COPY . .
RUN rice embed-go
RUN cd cmd/boringproxy && CGO_ENABLED=0 go build -o boringproxy
FROM scratch

View File

@ -40,14 +40,6 @@ source $HOME/.bashrc
go build
```
To embed the web UI into the executable:
```bash
go get github.com/GeertJohan/go.rice/rice
rice embed-go
go build
```
# Running
## Server

View File

@ -11,4 +11,3 @@ WORKDIR boringproxy
RUN ./scripts/install_go.sh
ENV PATH="${PATH}:/usr/local/go/bin"
ENV PATH="${PATH}:/root/go/bin"
RUN go get github.com/GeertJohan/go.rice/rice