Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Building a new proxy image will include the legacy assets
This is meant to address a potential WTF moment if anyone was to build thechangelog/proxy image on their host without having the legacy static assets present. The goal is for the legacy assets to be seamlessly pulled just-in-time, at the time of building the proxy image, without any extra hoops or WTF moments. This approach makes use of Docker multi-stage builds: https://docs.docker.com/develop/develop-images/multistage-build/ The resulting legacy_assets image is available via https://hub.docker.com/r/thechangelog/legacy_assets/ [finishes #162167357]
- Loading branch information
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| FROM thechangelog/legacy_assets AS legacy_assets | ||
| FROM jwilder/nginx-proxy | ||
|
|
||
| COPY ./www/wp-content /var/www/wp-content | ||
| COPY ./vhost.d/default /etc/nginx/vhost.d/default | ||
| COPY ./conf.d/changelog.conf /etc/nginx/conf.d/changelog.conf | ||
| COPY --from=legacy_assets /var/www/wp-content /var/www/wp-content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| FROM scratch | ||
| COPY ./www/wp-content /var/www/wp-content |