init
Some checks failed
release-tag / release-image (push) Failing after 38s
build-binaries / build (, amd64, linux) (push) Has been skipped
build-binaries / build (, arm, 7, linux) (push) Has been skipped
build-binaries / build (, arm64, linux) (push) Has been skipped
build-binaries / build (.exe, amd64, windows) (push) Has been skipped
build-binaries / release (push) Has been skipped

This commit is contained in:
2025-09-06 20:31:05 +02:00
parent 8ba9ea3f6b
commit 0bb37614ef
8 changed files with 699 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM golang:1.24-alpine AS build
WORKDIR /src
COPY go.mod go.sum* . 2>/dev/null || true
RUN go mod init appstore || true
COPY . .
RUN go build -o /bin/app
FROM alpine:3.22
WORKDIR /app
COPY --from=build /bin/app /app/app
COPY apps.json /app/apps.json
COPY templates /app/templates
COPY static /app/static
ENV SERVER_MODE="https" \
ADDR=":8443" \
APP_TITLE="Mein App-Store" \
APPS_JSON="/app/apps.json" \
STATIC_DIR="/app/static" \
TEMPLATE_DIR="/app/templates" \
TLS_CERT_FILE="/app/pub.pem" \
TLS_KEY_FILE="/app/pri.pem" \
HSTS="true" \
HTTP_REDIRECT_ADDR=":8080" \
HTTP_REDIRECT_ENABLED="true"
EXPOSE 8080,8443
CMD ["/app/app"]