refactor: use a Dockerfile to speed up env var injection for herokuish app builds

Herokuish app builds currently spin up a temporary container and then commit that container. The new approach uses a Dockerfile to perform those same actions, avoiding the need for the temporary container.
This commit is contained in:
Jose Diaz-Gonzalez
2021-08-18 03:16:11 -04:00
parent d0219ced67
commit 3d4252f43c
4 changed files with 31 additions and 37 deletions

View File

@@ -0,0 +1,4 @@
ARG APP_IMAGE
FROM $APP_IMAGE
COPY 00-global-env.sh 01-app-env.sh /app/.profile.d/

View File

@@ -0,0 +1,5 @@
ARG APP_IMAGE
FROM $APP_IMAGE
COPY .env.d /tmp/env
COPY .env /app/.env