First commit

This commit is contained in:
2025-02-12 10:09:13 +01:00
parent c0a3d089ff
commit 3f10373773
7 changed files with 158 additions and 0 deletions

18
misc/docker/Dockerfile Normal file
View File

@ -0,0 +1,18 @@
# Base image
FROM golang AS builder
# Set directory to known value
WORKDIR /app
# Define the version as a build argument
ARG GOTEMPLATE_VERSION=3.12.0
# Git clone the repo for gotemplate, checkout the desired tag, and build the executable
RUN git clone https://github.com/coveooss/gotemplate.git . && \
git checkout v${GOTEMPLATE_VERSION} && \
CGO_ENABLED=0 go build
FROM busybox
COPY --from=builder /app/gotemplate /gotemplate
ENTRYPOINT [ "/gotemplate" ]