File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ RUN apt-get update && \
1111 rm -rf /var/lib/apt/lists/*
1212
1313# add group & user
14+ ARG USER_HOME=/home/piper
1415RUN addgroup -gid 1000 piper && \
15- useradd piper --uid 1000 --gid 1000 --shell /bin/bash --create-home && \
16+ useradd piper --uid 1000 --gid 1000 --shell /bin/bash --home-dir "${USER_HOME}" -- create-home && \
1617 curl --location --silent "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -zx -C /usr/local/bin && \
1718 cf --version
1819
1920USER piper
20- WORKDIR /home/piper
21+ WORKDIR ${USER_HOME}
2122
2223ARG MTA_PLUGIN_VERSION=2.1.0
2324ARG MTA_PLUGIN_URL=https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/download/v${MTA_PLUGIN_VERSION}/mta_plugin_linux_amd64
@@ -27,3 +28,7 @@ RUN cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org && \
2728 cf install-plugin ${MTA_PLUGIN_URL} -f && \
2829 cf install-plugin Create-Service-Push -f -r CF-Community && \
2930 cf plugins
31+
32+ # allow anybody to read/write/exec at HOME
33+ RUN chmod -R o+rwx "${USER_HOME}"
34+ ENV HOME=${USER_HOME}
You can’t perform that action at this time.
0 commit comments