mirror of Walter-Sparrow / lunar-tear
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'main' of github.com:Walter-Sparrow/lunar-tear

+52
+1
server/.dockerignore
··· 1 + assets/
+33
server/Dockerfile
··· 1 + FROM alpine:latest AS builder 2 + 3 + WORKDIR /usr/local/src 4 + COPY . . 5 + 6 + RUN apk add --no-cache \ 7 + protobuf \ 8 + protobuf-dev \ 9 + protoc \ 10 + make \ 11 + go \ 12 + libcap 13 + 14 + RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest &&\ 15 + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest &&\ 16 + PATH="$PATH:$(go env GOPATH)/bin" make proto &&\ 17 + go build -o lunar-tear ./cmd/lunar-tear &&\ 18 + setcap cap_net_bind_service=+ep ./lunar-tear 19 + 20 + FROM alpine:latest 21 + 22 + WORKDIR /opt/lunar-tear 23 + 24 + RUN chown 1000:1000 /opt/lunar-tear 25 + 26 + USER 1000 27 + 28 + COPY --from=builder /usr/local/src/lunar-tear . 29 + 30 + COPY entrypoint.sh . 31 + 32 + ENTRYPOINT /opt/lunar-tear/entrypoint.sh 33 +
+14
server/docker-compose.yaml
··· 1 + services: 2 + server: 3 + build: . 4 + image: kretts/lunar-tear:latest 5 + environment: 6 + LUNAR_HOST: 127.0.0.1 7 + LUNAR_HTTP_PORT: 8080 8 + LUNAR_SCENE: 0 9 + volumes: 10 + - ./assets:/opt/lunar-tear/assets 11 + ports: 12 + - 443:443 # grpc, hardcoded by the client, not configurable 13 + - 8080:8080 14 +
+4
server/entrypoint.sh
··· 1 + #!/usr/bin/env sh 2 + 3 + ./lunar-tear --host "${LUNAR_HOST}" --http-port "${LUNAR_HTTP_PORT}" --scene "${LUNAR_SCENE}" 4 +