init
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM golang:1.23.4-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
ARG VERSION=dev
|
||||
RUN GOOS=linux go build -ldflags="-s -w -X main.version=${VERSION}" -o /app/zenfeed ./main.go
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache ca-certificates tzdata && \
|
||||
mkdir -p /app/data
|
||||
|
||||
COPY --from=builder /app/zenfeed /app/
|
||||
|
||||
ENTRYPOINT ["/app/zenfeed"]
|
||||
CMD ["--config", "/app/config/config.yaml"]
|
||||
Reference in New Issue
Block a user