docker and CI (#1)
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/dryrun Pipeline was successful
ci/woodpecker/push/publish-tag Pipeline was successful
ci/woodpecker/push/publish-latest Pipeline failed

Reviewed-on: #1
Co-authored-by: Michael Thomson <michael@michaelthomson.dev>
Co-committed-by: Michael Thomson <michael@michaelthomson.dev>
This commit is contained in:
2024-06-09 03:23:09 +00:00
committed by mthomson
parent 277fa92564
commit 23ac1417be
6 changed files with 72 additions and 1 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
# syntax=docker/dockerfile:1
FROM golang:1.22-alpine
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /entrypoint
EXPOSE 3000
ENTRYPOINT ["/entrypoint"]