File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ COPY --chmod=755 entrypoint.sh /opt/engine/entrypoint.sh
4444RUN rm -rf cli-lib manager-lib \
4545 && rm mirth-cli-launcher.jar oiecommand
4646
47- RUN chown -R {{ $ .config.uid }}:{{ $ .config.gid }} /opt/engine
48-
4947{{- /* Assign current version slug into a variable to carry it into the tags iteration */ }}
5048{{- $slug := dict " slug" .version.slug -}}
5149{{/* Iterate version tags to generate the final stages */ }}
@@ -65,10 +63,12 @@ RUN apt-get update \
6563 && rm -rf /var/lib/apt/lists/* \
6664 && groupmod --new-name engine ubuntu \
6765 && usermod -l engine ubuntu \
68- && usermod -aG engine engine
66+ && usermod -aG engine engine \
67+ && chown -R {{ $.config.uid }}:{{ $.config.gid }} /opt/engine
6968{{- else if eq .distro "alpine" }}
7069RUN apk add --no-cache bash unzip \
71- && adduser -D -H -u {{ $.config.uid }} engine engine
70+ && adduser -D -H -u {{ $.config.uid }} engine engine \
71+ && chown -R {{ $.config.uid }}:{{ $.config.gid }} /opt/engine
7272{{- end }}
7373
7474VOLUME /opt/engine/appdata
You can’t perform that action at this time.
0 commit comments