diff options
author | Cameron Fleming <cameron@nevexo.space> | 2020-06-27 18:03:24 +0100 |
---|---|---|
committer | Cameron Fleming <cameron@nevexo.space> | 2020-06-27 18:03:24 +0100 |
commit | dee88bbd1a285ccff920027e11147fb357841ca5 (patch) | |
tree | a9d0559fefffe8a24594748eed6393c5202f6774 /Dockerfile | |
parent | b524c3401ccb89be4e53d92868a38e7ecf459d00 (diff) |
Create docker files
Allow's cState to run under Docker.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..721b64a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM nginx:alpine + +# /cstate will be our volume & building directory +WORKDIR /cstate + +# Install hugo & git +RUN apk add hugo git + +# -- First Run -- + +# Download the example site +RUN git clone 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 ./docker/entrypoint.sh /docker-entrypoint.d/10-build-hugo.sh
\ No newline at end of file |