-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from AaronForce1/master
Version 0.54.0
- Loading branch information
Showing
10 changed files
with
98 additions
and
22 deletions.
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
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,41 @@ | ||
FROM klakegg/hugo:base AS base | ||
|
||
FROM klakegg/hugo:base-certs as certs | ||
|
||
FROM klakegg/hugo:base-nodejs as node | ||
|
||
FROM ubuntu:18.04 AS ubuntu | ||
|
||
FROM scratch as image | ||
|
||
COPY files /files | ||
COPY --from=base /bin/hugo-extended /files/bin/hugo | ||
COPY --from=certs /etc/ssl/certs /files/etc/ssl/certs | ||
COPY --from=ubuntu /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25 /files/usr/lib/libstdc++.so.6 | ||
COPY --from=node /node /files/ | ||
CMD ln -s /files/node/bin/node /files/bin/node \ | ||
&& ln -s /files/node/bin/npm /files/bin/npm \ | ||
&& ln -s /files/node/bin/npx /files/bin/npx | ||
|
||
FROM frolvlad/alpine-glibc:alpine-3.8 | ||
|
||
ENV HUGO_BIND="0.0.0.0" \ | ||
HUGO_DESTINATION="/target" \ | ||
HUGO_ENV="DEV" | ||
|
||
RUN apk add --no-cache libstdc++ busybox-suid bash bash-completion | ||
|
||
COPY --from=image /files / | ||
|
||
RUN ["node", "-v"] | ||
RUN npm install --global yarn | ||
|
||
RUN mkdir /etc/bash_completion.d \ | ||
&& hugo gen autocomplete > /dev/null | ||
|
||
EXPOSE 1313 | ||
|
||
VOLUME /src /target | ||
WORKDIR /src | ||
|
||
ENTRYPOINT ["sh", "/run.sh"] |
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
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
Oops, something went wrong.