mirror of
https://github.com/cubixle/groxy.git
synced 2026-04-30 06:28:42 +01:00
fix docker build for arm, amd, arm64
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
FROM golang:1-alpine AS build-env
|
||||
|
||||
RUN apk add git
|
||||
|
||||
RUN mkdir /app
|
||||
COPY . /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN go build -o /tmp/groxy ./cmd/groxy
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=build-env /tmp/groxy /bin/groxy
|
||||
|
||||
RUN ls /bin/groxy
|
||||
|
||||
CMD ["/bin/groxy"]
|
||||
|
||||
Reference in New Issue
Block a user