-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 857 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:20.04
# Prevent timezone interaction
RUN apt update -y && apt upgrade -y && apt install tzdata -y && ln -fs /usr/share/zoneinfo/US/Pacific-New /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
# System upgrade and install hugo and node
RUN apt install hugo npm vim -y
# Create the website boilerplate
WORKDIR /opt/
RUN hugo new site scannellio
WORKDIR /opt/scannellio
# Install the theme
RUN git init && git clone https://github.com/panr/hugo-theme-terminal.git themes/terminal
WORKDIR /opt/scannellio/themes/terminal
RUN npm install
WORKDIR /opt/scannellio
# Copy the configuration
RUN rm config.toml
COPY config.toml config.toml
# Copy the actual site content
COPY ./static/ ./static/
COPY ./content/ ./content/
ENTRYPOINT hugo server --bind 0.0.0.0 --appendPort=false -p 80 --minify --noTimes --baseURL https://scannell.io