Skip to content

Commit

Permalink
chore(release): bumped version to v2.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Nov 4, 2023
1 parent 77913b1 commit 0b514f6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 33 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/linter.yml

This file was deleted.

38 changes: 24 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
FROM --platform=${BUILDPLATFORM} golang:alpine as builder
FROM --platform=${BUILDPLATFORM} whatwewant/builder-go:v1.21-1 as builder

RUN apk add --no-cache make git ca-certificates && \
wget -O /Country.mmdb https://github.com/Dreamacro/maxmind-geoip/releases/latest/download/Country.mmdb
WORKDIR /workdir
COPY --from=tonistiigi/xx:golang / /
ARG TARGETOS TARGETARCH TARGETVARIANT
RUN wget -O /Country.mmdb https://github.com/doreamon-design/clash/releases/download/v2.0.8/Country.mmdb

RUN --mount=target=. \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \
make BINDIR= ${TARGETOS}-${TARGETARCH}${TARGETVARIANT} && \
mv /clash* /clash
WORKDIR /build

COPY go.mod ./

COPY go.sum ./

RUN go mod download

COPY . .

RUN CGO_ENABLED=0 \
go build \
-trimpath \
-ldflags '-w -s -buildid=' \
-v -o /clash ./cmd/clash

FROM whatwewant/alpine:v3.17-1

FROM alpine:latest
LABEL org.opencontainers.image.source="https://github.com/doreamon-design/clash"

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

COPY --from=builder /Country.mmdb /root/.config/clash/
COPY --from=builder /clash /
ENTRYPOINT ["/clash"]

COPY --from=builder /clash /usr/bin

CMD clash
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package clash

// Version is the version of lighthouse
var Version = "2.0.10"
var Version = "2.0.11"

0 comments on commit 0b514f6

Please sign in to comment.