Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenH47 committed Mar 5, 2024
1 parent 3c1212d commit cbcb099
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# vscode
/.vscode

# idea
/.idea

# git
/.git
20 changes: 20 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use a lightweight base image
FROM arm64v8/python:3.8-alpine

# Set the working directory in the container
WORKDIR /app

# Copy the local MkDocs files into the container
COPY . /app

# Install MkDocs and any required plugins
RUN pip install mkdocs mkdocs-material

# Build the MkDocs site
RUN mkdocs build

# Expose port 8000 to serve the MkDocs site
EXPOSE 8000

# Command to serve the MkDocs site using the built-in HTTP server
CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"]
3 changes: 1 addition & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
site_name: greenh47
site_url: https://greenh47.github.io/mynote/
site_url: https://note.greenhuang.com
repo_url: https://github.com/GreenH47/mynote
site_description: greenh47 personal website
site_author: greenh47
Expand Down Expand Up @@ -77,7 +77,6 @@ plugins:
- search:
indexing: 'full'
separator: '[\s\-,:!=\[\]()"/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
- git-revision-date

extra:
social:
Expand Down
1 change: 1 addition & 0 deletions requirments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mkdocs

0 comments on commit cbcb099

Please sign in to comment.