aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorCameron Fleming <cameron@nevexo.space>2020-12-11 22:40:35 +0000
committerMantas Vilčinskas <hi@mnts.lt>2020-12-15 20:37:08 +0200
commit9556f030fb2bd6aa7e91a4870c6da5a993db3b1b (patch)
tree77e940145d887b9c53c861101985be1fd41e7f91 /Dockerfile
parentf191b32b505516036ed01fcafacaee8a980308a8 (diff)
Docker: line endings & verbose messages
These changes replace the CRLF line endings on entrypoint.sh (#160) and adds more debugging messages for diagnosing issues with the docker side of cState in the future.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 7f64956..f36d060 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,14 +6,12 @@ WORKDIR /cstate
# Install hugo & git
RUN apk add --no-cache hugo git
-# -- First Run --
-
# Download the example site
-RUN git clone https://github.com/cstate/example /cstate
+RUN git clone -b master --depth=1 https://github.com/cstate/example /cstate
# Copy files from this repo into themes/cstate
RUN mkdir -p /cstate/themes/cstate
COPY . /cstate/themes/cstate
-# Prepare the entrypoint files
+# Copy entrypoint script into the container image, this runs everytime the container cold-starts.
COPY ./docker/entrypoint.sh /docker-entrypoint.d/10-build-hugo.sh