🐳 Add Dockerfile and update config.toml
All checks were successful
Hugo Publish CI / build-and-deploy (push) Successful in 11s

- Add Dockerfile to containerize the Hugo site
- Update config.toml with new menu items and social links
This commit is contained in:
Eric X. Liu 2024-09-16 11:37:05 -07:00
parent 39e6a27cee
commit 8727ffa33f
2 changed files with 30 additions and 3 deletions

25
Dockerfile Normal file
View File

@ -0,0 +1,25 @@
# Use Alpine Linux as the base image
FROM alpine:3.19
# Install necessary packages including Hugo from edge repository and vim
RUN apk add --no-cache \
git \
curl \
libc6-compat \
vim && \
apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo
# Set the working directory in the container
WORKDIR /src
# Copy the Hugo project files into the container
COPY . .
# Initialize and update submodules
RUN git submodule update --init --recursive
# Expose the default Hugo port
EXPOSE 1313
# Command to run Hugo server
CMD ["hugo", "server", "--bind", "0.0.0.0"]

View File

@ -12,6 +12,8 @@ enableEmoji = true
enableTwemoji = true
enableGitInfo = true
[markup.highlight]
style = "github-dark"
[params] # theme parameters
author = "Eric X. Liu"
@ -40,17 +42,17 @@ enableGitInfo = true
# Social links
[[params.social]]
name = "Git"
icon = "fa fa-git"
icon = "fa-brands fa-git fa-2x"
weight = 1
url = "https://git.ericxliu.me/eric"
[[params.social]]
name = "linkedin"
icon = "fa fa-linkedin"
icon = "fa-brands fa-linkedin fa-2x"
weight = 2
url = "https://www.linkedin.com/in/eric-x-liu-46648b93/"
[[params.social]]
name = "Personal email"
icon = "fa fa-envelope"
icon = "fa fa-envelope fa-2x"
weight = 3
# Menu links