Skip to content

Commit

Permalink
feat: add Docker support to view GFM
Browse files Browse the repository at this point in the history
`docker compose up -d` starts a  Python grip server to render the local README.md file at http://localhost:6419

resolves #13

Co-Authored-By: hwelsters <[email protected]>
  • Loading branch information
alee and hwelsters committed Feb 23, 2023
1 parent 0e6324f commit a687d74
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git*
.cache
*~
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:3-slim
WORKDIR /app
RUN pip install grip
COPY . .
EXPOSE 6419
CMD ["grip", "0.0.0.0:6419"]
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
grip:
image: comses-education/github-starter-course
build:
context: .
ports:
- "6419:6419"

0 comments on commit a687d74

Please sign in to comment.