Skip to content

Commit

Permalink
Don't create /app or /workspace or set them as $HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlewis committed Jan 18, 2024
1 parent 20fad1a commit 99f3e4b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions heroku-24-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ RUN /tmp/setup.sh

ENV CNB_USER_ID=1000
ENV CNB_GROUP_ID=1000
USER 1000

ENV CNB_STACK_ID "heroku-24"
LABEL io.buildpacks.stack.id="heroku-24"

USER 1000
1 change: 0 additions & 1 deletion heroku-24/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ COPY setup.sh /tmp/setup.sh
RUN /tmp/setup.sh

USER 1000
ENV HOME /app
LABEL io.buildpacks.stack.id="heroku-24"
4 changes: 0 additions & 4 deletions heroku-24/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,6 @@ apt-get purge -y openjdk-8-jre-headless
apt-get autoremove -y --purge
test "$(file -b /etc/ssl/certs/java/cacerts)" = "Java KeyStore"

# Create required directories for compiled apps
mkdir /app /workspace
chown 1000:1000 /app /workspace

rm -rf /root/*
rm -rf /tmp/*
rm -rf /var/cache/apt/archives/*.deb
Expand Down

0 comments on commit 99f3e4b

Please sign in to comment.