generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify Docker setup and update documentation (#16)
* Remove git-revision-date-localized plugin * Optimize Docker setup and add Compose support * Update install instructions in README * Update README.md
- Loading branch information
Showing
5 changed files
with
68 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
# Use Python 3.10.11 image as the base | ||
FROM python:3.10-slim-bullseye | ||
|
||
# Set the working directory | ||
FROM python:3.10-alpine | ||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '3.8' | ||
services: | ||
mkdocs: | ||
build: . | ||
ports: | ||
- "8000:8000" | ||
volumes: | ||
- .:/app | ||
command: mkdocs serve --dev-addr=0.0.0.0:8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters