feat: initial commit
This commit is contained in:
@@ -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" ]
|
||||
Reference in New Issue
Block a user