feat: initial commit

This commit is contained in:
Lukas Werner
2025-08-30 13:06:28 -07:00
commit efee85cf31
23 changed files with 10414 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM --platform=$BUILDPLATFORM golang:alpine AS build
# for full parings check out https://go.dev/doc/install/source#environment
ENV GOOS=linux
# this will be the target cpu arch
# Can be amd64 arm64 386 ppc64
ENV GOARCH=amd64
RUN apk add git
WORKDIR /src/
RUN git clone https://git.hafen.run/lukas/oauth-guard.git
WORKDIR /src/oauth-guard
RUN go mod download -x
ENV CGO_ENABLED=0
RUN go build -o oauth-guard .
COPY config.toml .
EXPOSE 3000
CMD [ "./oauth-guard" ]