Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
craigthackerx committed Dec 14, 2023
1 parent 124e38f commit 6bf03d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion containers/jenkins-alpine/packer.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,15 @@ source "docker" "alpine" {
commit = true

changes = [
"USER root",
"USER ${var.normal_user}",
format("LABEL org.opencontainers.image.title=%s", var.container_name),
format("LABEL org.opencontainers.image.source=%s/%s/%s", var.project_scm, var.org, var.project),
format("LABEL org.opencontainers.image.title=%s", var.container_name),
format("ENV PATH=%s", local.path_var),
format("ENV PYENV_ROOT=%s", "/home/${var.normal_user}/.pyenv"),
]

run_command = ["-d", "-i", "-t", "--entrypoint=/bin/sh", "--user=root", "--", "{{.Image}}"]
}

build {
Expand Down

0 comments on commit 6bf03d2

Please sign in to comment.