You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
443 B
Docker
17 lines
443 B
Docker
FROM golang:1.17 as builder
|
|
|
|
RUN git clone https://github.com/xpunch/go-micro-dashboard.git /usr/local/micro \
|
|
&& cd /usr/local/micro \
|
|
&& go install github.com/swaggo/swag/cmd/swag@latest \
|
|
&& swag init \
|
|
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o dashboard .
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /usr/local/bin
|
|
|
|
COPY --from=builder /usr/local/micro/dashboard .
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/dashboard" ] |