-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (24 loc) · 843 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM golang:1.21-alpine as build
WORKDIR /go/src/curator
RUN apk update && apk add automake build-base
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ARG GIT_COMMIT=unspecified
ARG BUILD_DATE=unspecified
LABEL git_commit=$GIT_COMMIT
LABEL build_date=$BUILD_DATE
ENV GIT_COMMIT=$GIT_COMMIT
ENV BUILD_DATE=$BUILD_DATE
RUN go build -o curator .
FROM alpine
WORKDIR /app
COPY --from=flyio/litefs:0.5 /usr/local/bin/litefs /usr/local/bin/litefs
COPY --from=build /go/src/curator/docker-config/etc/litefs.static-lease.yml /tmp
COPY --from=build /go/src/curator/docker-config/litefs.yml /etc
COPY --from=build /go/src/curator/curator /app/curator
COPY --from=build /go/src/curator/views /app/views
COPY --from=build /go/src/curator/static /app/static
RUN apk add ca-certificates fuse3 sqlite
ENV GIN_MODE=release
ENTRYPOINT litefs mount