Skip to content

Commit

Permalink
+ update main
Browse files Browse the repository at this point in the history
  • Loading branch information
FKAJerry committed Mar 25, 2024
1 parent 983361e commit feffbe4
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
FROM --platform=$BUILDPLATFORM docker/golang:1.19 as build

ARG GOPROXY
ARG GOSUMDB
ARG GOPRIVATE
ARG TARGETARCH

WORKDIR /app

ENV GO111MODULE=on
# GOPROXY=https://goproxy.cn,direct

RUN make build

FROM golang:1.20 AS builder
WORKDIR /build
COPY . .
RUN make build

# RUN make insight-linux

FROM alpine:3.15

COPY --from=build /app/etcd-metrics-proxy /

EXPOSE 2381 2381

ENTRYPOINT [ "/etcd-metrics-proxy" ]
EXPOSE 2381 2381

0 comments on commit feffbe4

Please sign in to comment.