mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
19 lines
362 B
Docker
19 lines
362 B
Docker
|
FROM docker.io/library/golang:1.20-alpine3.17 AS builder
|
||
|
WORKDIR /app
|
||
|
|
||
|
ADD go.mod go.mod
|
||
|
ADD go.sum go.sum
|
||
|
RUN go mod download
|
||
|
|
||
|
ADD . .
|
||
|
|
||
|
ARG GITHUB_TOKEN
|
||
|
|
||
|
RUN go build -o releaser main.go
|
||
|
RUN ./releaser --github-token=$GITHUB_TOKEN
|
||
|
|
||
|
FROM nginx:1.21.3-alpine
|
||
|
|
||
|
COPY page /usr/share/nginx/html
|
||
|
COPY --from=builder /app/releases.json /usr/share/nginx/html/data.json
|