James Andariese
c5bfdce364
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
16 lines
267 B
Docker
16 lines
267 B
Docker
FROM golang:1.21 AS build
|
|
|
|
WORKDIR /ipfs-key
|
|
ADD go.mod go.sum /ipfs-key
|
|
RUN echo 'package main;func main() {}' > main.go
|
|
RUN go get && rm main.go
|
|
|
|
ADD main.go /ipfs-key
|
|
RUN go build
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=build /ipfs-key/ipfs-key /ipfs-key
|
|
|
|
ENTRYPOINT /ipfs-key
|