aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: de5d0f07a7dc336ba1d697b63b95258dde266d36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM nginx:alpine

# /cstate will be our volume & building directory
WORKDIR /cstate

# Install hugo & git
RUN apk add --no-cache hugo git

# Download the example site
COPY exampleSite /cstate

# Copy files from this repo into themes/cstate
RUN mkdir -p /cstate/themes/cstate
COPY . /cstate/themes/cstate

# Copy entrypoint script into the container image, this runs every time the container cold-starts.
COPY ./docker/entrypoint.sh /docker-entrypoint.d/10-build-hugo.sh