mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2025-12-12 06:20:12 +01:00
chore: add Earthfile
This commit is contained in:
parent
a4613ac56c
commit
629398bcac
1 changed files with 21 additions and 0 deletions
21
Earthfile
Normal file
21
Earthfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
VERSION 0.6
|
||||
FROM golang:1.19-alpine
|
||||
WORKDIR /build
|
||||
|
||||
deps:
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download && go mod verify
|
||||
|
||||
build:
|
||||
FROM +deps
|
||||
COPY pkg pkg
|
||||
COPY *.go .
|
||||
COPY *.libsonnet .
|
||||
RUN go build -o dist/docsonnet .
|
||||
SAVE ARTIFACT dist/docsonnet /docsonnet
|
||||
|
||||
image:
|
||||
FROM alpine:3.12
|
||||
COPY +build/docsonnet /usr/bin/docsonnet
|
||||
ENTRYPOINT "/usr/bin/docsonnet"
|
||||
SAVE IMAGE --push docker.io/technofab/docsonnet
|
||||
Loading…
Add table
Add a link
Reference in a new issue