mirror of
https://github.com/boringproxy/boringproxy.git
synced 2024-07-07 04:42:58 -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
|
WORKDIR /build
|
||||||
|
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
RUN go get github.com/GeertJohan/go.rice/rice
|
|
||||||
|
|
||||||
COPY go.* ./
|
COPY go.* ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN rice embed-go
|
|
||||||
RUN cd cmd/boringproxy && CGO_ENABLED=0 go build -o boringproxy
|
RUN cd cmd/boringproxy && CGO_ENABLED=0 go build -o boringproxy
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
|
@ -40,14 +40,6 @@ source $HOME/.bashrc
|
||||||
go build
|
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
|
# Running
|
||||||
|
|
||||||
## Server
|
## Server
|
||||||
|
|
|
@ -11,4 +11,3 @@ WORKDIR boringproxy
|
||||||
RUN ./scripts/install_go.sh
|
RUN ./scripts/install_go.sh
|
||||||
ENV PATH="${PATH}:/usr/local/go/bin"
|
ENV PATH="${PATH}:/usr/local/go/bin"
|
||||||
ENV PATH="${PATH}:/root/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