Use gomplate in Dockerfile

This commit is contained in:
Daniel Berteaud 2023-08-28 23:37:05 +02:00
parent 5799e04123
commit 39842f3b31
5 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,10 @@
FROM alpine:latest
FROM [[ .docker.repo ]][[ .docker.base_images.alpine ]]
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
ENV SSHD_PORT=2022 \
SSHD_LOG_LEVEL=INFO
COPY resources/ /
COPY root/ /
RUN set -eux &&\
apk --no-cache upgrade &&\
apk --no-cache add tini openssh-server rsync envsubst &&\

View File

@ -111,6 +111,7 @@ _EOF
env {
SSHD_PORT = "${NOMAD_PORT_ssh}"
[[ template "common/env.tpl" .repo.rsync.env ]]
}
vault {