Add docker files.

This commit is contained in:
James Pace 2023-03-21 20:21:03 -04:00
parent 289048d725
commit 7b3f6b99dd
4 changed files with 37 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
docker/

12
docker/Dockerfile_issue Normal file
View File

@ -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

View File

@ -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

12
docker/Dockerfile_status Normal file
View File

@ -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