mirror of
https://github.com/boringproxy/boringproxy.git
synced 2024-07-04 11:22:57 -05:00
Finish removing go rice
This commit is contained in:
parent
93647182ad
commit
87cbeb4862
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user