initial commit
This commit is contained in:
13
Dockerfile.mock-oauth
Normal file
13
Dockerfile.mock-oauth
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM golang:1.22-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o /mock-oauth ./cmd/mock-oauth
|
||||
|
||||
FROM alpine:3.19
|
||||
RUN apk --no-cache add ca-certificates
|
||||
COPY --from=builder /mock-oauth /mock-oauth
|
||||
EXPOSE 9999
|
||||
ENV PORT=9999
|
||||
CMD ["/mock-oauth"]
|
||||
Reference in New Issue
Block a user