Skip to content

Commit

Permalink
Updating to confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
grownuphacker committed Jan 21, 2024
1 parent dac9f50 commit d89545c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ RUN pip install pymdown-extensions \
&& pip install pip install mkdocs-dracula-theme

USER root
# Copy the init and make it executionerable
COPY ./scripts/init.sh /usr/src/mkdocs/build/init.sh
RUN chmod 0744 /usr/src/mkdocs/build/init.sh

COPY ./scripts/update.sh /usr/src/mkdocs/build/update.sh
RUN chmod 0744 /usr/src/mkdocs/build/update.sh
Expand All @@ -52,9 +49,9 @@ COPY ./scripts/launch.sh /usr/src/mkdocs/build/launch.sh

# Run the command on container startup
RUN chmod 0744 /usr/src/mkdocs/build/launch.sh
RUN git clone $REPO /build/
RUN chown mkdocs:mkdocs -R /build

USER mkdocs

COPY ./data/mkdocs.yml /usr/src/mkdocs/build/.clone/data/mkdocs.yml

ENTRYPOINT ["/usr/src/mkdocs/build/launch.sh"]
2 changes: 1 addition & 1 deletion data/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
site_name: Graylog CTF Handbook
site_url: https://handbook.logfather.org
docs_dir: /build/docs
docs_dir: /build/data/docs
theme:
name: dracula
locale: en
Expand Down
3 changes: 0 additions & 3 deletions scripts/init.sh

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/launch.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
/usr/src/mkdocs/.local/bin/mkdocs serve --dev-addr 0.0.0.0:8000 --config-file /usr/src/mkdocs/build/.clone/data/mkdocs.yml
/usr/src/mkdocs/.local/bin/mkdocs serve --dev-addr 0.0.0.0:8000 --config-file /build/data/mkdocs.yml

0 comments on commit d89545c

Please sign in to comment.