Add template support.

This commit is contained in:
2024-08-26 23:12:33 +02:00
parent 30f8be3d5d
commit e87dfaf38b
11 changed files with 707 additions and 381 deletions

22
templates/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM alpine
RUN apk update --no-cache && apk add --no-cache ca-certificates tzdata
# Set timezone if necessary
#ENV TZ UTC
ENV USER=gouser
ENV UID=10001
RUN adduser \
--disabled-password \
--gecos "" \
--shell "/sbin/nologin" \
--no-create-home \
--uid "${UID}" \
"${USER}"
ADD {{.ProjectFolderName}} /app/{{.ProjectFolderName}}
WORKDIR /app
USER gouser:gouser
ENTRYPOINT ["./{{.ProjectFolderName}}"]