initial release
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM golang:1.22-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY go.mod ./
|
||||
RUN go mod download
|
||||
COPY . ./
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /nftcache ./cmd/nftcache
|
||||
|
||||
FROM gcr.io/distroless/base-debian12
|
||||
WORKDIR /
|
||||
COPY --from=build /nftcache /nftcache
|
||||
USER 65532:65532
|
||||
EXPOSE 8090
|
||||
ENV NFTCACHE_DATA_DIR=/data
|
||||
ENTRYPOINT ["/nftcache"]
|
||||
Reference in New Issue
Block a user