🐳 Add Dockerfile and update config.toml
All checks were successful
Hugo Publish CI / build-and-deploy (push) Successful in 11s
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:
parent
39e6a27cee
commit
8727ffa33f
25
Dockerfile
Normal file
25
Dockerfile
Normal 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"]
|
@ -12,6 +12,8 @@ enableEmoji = true
|
|||||||
enableTwemoji = true
|
enableTwemoji = true
|
||||||
enableGitInfo = true
|
enableGitInfo = true
|
||||||
|
|
||||||
|
[markup.highlight]
|
||||||
|
style = "github-dark"
|
||||||
|
|
||||||
[params] # theme parameters
|
[params] # theme parameters
|
||||||
author = "Eric X. Liu"
|
author = "Eric X. Liu"
|
||||||
@ -40,17 +42,17 @@ enableGitInfo = true
|
|||||||
# Social links
|
# Social links
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "Git"
|
name = "Git"
|
||||||
icon = "fa fa-git"
|
icon = "fa-brands fa-git fa-2x"
|
||||||
weight = 1
|
weight = 1
|
||||||
url = "https://git.ericxliu.me/eric"
|
url = "https://git.ericxliu.me/eric"
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "linkedin"
|
name = "linkedin"
|
||||||
icon = "fa fa-linkedin"
|
icon = "fa-brands fa-linkedin fa-2x"
|
||||||
weight = 2
|
weight = 2
|
||||||
url = "https://www.linkedin.com/in/eric-x-liu-46648b93/"
|
url = "https://www.linkedin.com/in/eric-x-liu-46648b93/"
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "Personal email"
|
name = "Personal email"
|
||||||
icon = "fa fa-envelope"
|
icon = "fa fa-envelope fa-2x"
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
# Menu links
|
# Menu links
|
||||||
|
Loading…
Reference in New Issue
Block a user