Skip to content

Instantly share code, notes, and snippets.

View greghuc's full-sized avatar

Gregory Huczynski greghuc

View GitHub Profile
@greghuc
greghuc / Dockerfile
Created December 22, 2023 10:48 — forked from wwerner/Dockerfile
Enable heroku ps:exec in docker containers
FROM openjdk:8-jdk-alpine
VOLUME /tmp
# see https://devcenter.heroku.com/articles/exec#enabling-docker-support
RUN apk add --no-cache curl bash openssh python
ADD src/main/docker/heroku-exec.sh /app/.profile.d/heroku-exec.sh
RUN chmod a+x /app/.profile.d/heroku-exec.sh
ADD src/main/docker/sh-wrapper.sh /bin/sh-wrapper.sh
RUN chmod a+x /bin/sh-wrapper.sh