Skip to content

Commit 71c119a

Browse files
authored
Templatize (#2)
1 parent f6ada11 commit 71c119a

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
FROM cloudposse/packages:0.2.1 as packages
12
FROM nginx:1.15.0-alpine
23

4+
ENV HOMEPAGE=https://cloudposse.com/
5+
ENV EMAIL=hello@cloudposse.com
6+
7+
COPY --from=packages /packages/bin/gomplate /usr/bin/
8+
39
ADD rootfs/ /
10+
11+
CMD ["gomplate", "--input-dir", "/usr/share/nginx/html/", "--output-dir", "/usr/share/nginx/html/", "--", "nginx", "-g", "daemon off;"]

rootfs/usr/share/nginx/html/404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@
163163
</p>
164164
</div>
165165
<div class="buttons-container">
166-
<a class="border-button" href="{{ .Values.errors.default.site }}" target="_blank">Go To Homepage</a>
167-
<a class="border-button" href="mailto:{{ .Values.errors.default.email }}" target="_blank">Report A Problem</a>
166+
<a class="border-button" href="{{ getenv "HOMEPAGE" }}" target="_blank">Go To Homepage</a>
167+
<a class="border-button" href="mailto:{{ getenv "EMAIL" }}" target="_blank">Report A Problem</a>
168168
</div>
169169
</div>
170170
<script>

rootfs/usr/share/nginx/html/50x.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
</p>
163163
</div>
164164
<div class="buttons-container">
165-
<a class="border-button" href="mailto:{{ .Values.errors.default.email }}" target="_blank">Report A Problem</a>
165+
<a class="border-button" href="mailto:{{ getenv "EMAIL" }}" target="_blank">Report A Problem</a>
166166
</div>
167167
</div>
168168
<script>

0 commit comments

Comments
 (0)