Initial Commit

This commit is contained in:
2023-09-18 19:57:18 -04:00
commit 1a1fb31a3c
52 changed files with 6882 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
# FROM golang:1.20-alpine AS build
FROM alpine:edge AS build
RUN apk add --no-cache --update go gcc g++
WORKDIR /app
COPY . /app
RUN go mod download
RUN CGO_ENABLED=1 CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build -o /sync-ninja cmd/main.go
FROM alpine:3.18
COPY --from=build /sync-ninja /sync-ninja
EXPOSE 8585
ENTRYPOINT ["/sync-ninja", "serve"]