Add docker files.
This commit is contained in:
parent
289048d725
commit
7b3f6b99dd
|
|
@ -0,0 +1 @@
|
|||
docker/
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
FROM docker.io/library/debian:latest as builder
|
||||
|
||||
RUN apt update && apt install -y golang ca-certificates
|
||||
|
||||
COPY . /source
|
||||
|
||||
RUN cd /source && go build -o /j7s-gitea-issue cmd/j7s-gitea-issue/main.go
|
||||
|
||||
FROM docker.io/library/debian:latest
|
||||
RUN apt update && apt install -y ca-certificates
|
||||
COPY --from=builder /j7s-gitea-issue /j7s-gitea-issue
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
FROM docker.io/library/debian:latest as builder
|
||||
|
||||
RUN apt update && apt install -y golang ca-certificates
|
||||
|
||||
COPY . /source
|
||||
|
||||
RUN cd /source && go build -o /j7s-gitea-push-listener cmd/j7s-gitea-push-listener/main.go
|
||||
|
||||
FROM docker.io/library/debian:latest
|
||||
RUN apt update && apt install -y ca-certificates
|
||||
COPY --from=builder /j7s-gitea-push-listener /j7s-gitea-push-listener
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
FROM docker.io/library/debian:latest as builder
|
||||
|
||||
RUN apt update && apt install -y golang ca-certificates
|
||||
|
||||
COPY . /source
|
||||
|
||||
RUN cd /source && go build -o /j7s-gitea-status cmd/j7s-gitea-status/main.go
|
||||
|
||||
FROM docker.io/library/debian:latest
|
||||
RUN apt update && apt install -y ca-certificates
|
||||
COPY --from=builder /j7s-gitea-status /j7s-gitea-status
|
||||
|
||||
Loading…
Reference in New Issue