Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vraer authored Sep 19, 2023
1 parent 7d8e988 commit b00321a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.git/
.gitignore
.github/
.vscode/
site/
venv/
__pycache__/
*.pyc
pip-wheel-metadata/
.DS_Store
Thumbs.db
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Use Python 3.10.11 image as the base
FROM python:3.10-slim-bullseye

# Set the working directory
WORKDIR /app

# Copy the current directory to the container
COPY . /app

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Expose port 8000
EXPOSE 8000

# Start mkdocs dev server
CMD ["mkdocs", "serve", "--dev-addr=0.0.0.0:8000"]

0 comments on commit b00321a

Please sign in to comment.