This commit is contained in:
mr
2026-02-10 09:39:13 +01:00
parent eb6dee0c4d
commit af0a8cb117
5 changed files with 34 additions and 12 deletions

View File

@@ -27,10 +27,11 @@ COPY . .
RUN sed -i '/replace/d' go.mod
RUN bee pack
RUN mkdir -p /app/extracted && tar -zxvf oc-auth.tar.gz -C /app/extracted
RUN sed -i 's/http:\/\/127.0.0.1:8080\/swagger\/swagger.json/swagger.json/g' /app/extracted/swagger/index.html
#----------------------------------------------------------------------------------------------
FROM scratch
FROM golang:alpine
WORKDIR /app
COPY --from=builder /app/extracted/oc-auth /usr/bin