The previous method used an ephemeral container, which was slightly more convoluted and required cleanup. The new method also allows us to set an initial WORKDIR, which is useful for ensuring 'docker exec' works as expected.
7 lines
148 B
Docker
7 lines
148 B
Docker
ARG APP_IMAGE
|
|
FROM $APP_IMAGE
|
|
|
|
ARG DOKKU_APP_USER herokuishuser
|
|
RUN USER=$DOKKU_APP_USER /exec true
|
|
COPY --chown=$DOKKU_APP_USER . /app
|
|
WORKDIR /app |