-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 946 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
FROM golang:1.24-bullseye AS builder
WORKDIR /build
COPY . .
# Build
RUN go mod download && go mod tidy
RUN go build
# final stage
FROM debian:bullseye-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates && \
rm -rf /var/lib/apt/lists/*
ARG APPLICATION="markgen"
ARG DESCRIPTION="📜 Generate personalized markdown files with templates, GitHub, RSS, and API integrations using Go."
ARG PACKAGE="trinhminhtriet/markgen"
LABEL org.opencontainers.image.ref.name="${PACKAGE}" \
org.opencontainers.image.authors="Triet Trinh <contact@trinhminhtriet.com>" \
org.opencontainers.image.documentation="https://github.com/${PACKAGE}/README.md" \
org.opencontainers.image.description="${DESCRIPTION}" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/${PACKAGE}"
COPY --from=builder /build/markgen /bin/
WORKDIR /workdir
ENTRYPOINT ["/bin/markgen"]