initial commit

This commit is contained in:
Hampus Kraft
2026-01-01 20:42:59 +00:00
commit 2f557eda8c
9029 changed files with 1490197 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
FROM golang:1.25.5-alpine AS build
WORKDIR /build
COPY fluxer_app/proxy/go.mod ./
COPY fluxer_app/proxy/go.sum* ./
RUN go mod download
COPY fluxer_app/proxy/ .
COPY fluxer_app/dist/index.html assets/index.html
COPY fluxer_app/dist/manifest.json assets/manifest.json
COPY fluxer_app/dist/sw.js* assets/
COPY fluxer_app/dist/version.json assets/version.json
ARG TARGETOS=linux
ARG TARGETARCH=amd64
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o fluxer-app-proxy
FROM alpine:3.19
RUN apk add --no-cache ca-certificates curl
WORKDIR /app
COPY --from=build /build/fluxer-app-proxy /app/fluxer-app-proxy
USER nobody
EXPOSE 8080
ENV PORT=8080
ENTRYPOINT ["/app/fluxer-app-proxy"]