Skip to content

Commit

Permalink
add docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Dec 7, 2023
1 parent 89826d6 commit 1c4a4ab
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

docker build --no-cache --tag homie-site:dev .
#docker run --rm -t homie-site:dev
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.11.7-bullseye

# Copy the local repo contents
COPY ./ /work
WORKDIR /work


RUN pip install -r requirements.txt


# Install Hugo
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.102.3/hugo_extended_0.102.3_Linux-64bit.deb -O /tmp/hugo.deb \
&& dpkg -i /tmp/hugo.deb


ENTRYPOINT ["/work/docker-entrypoint.sh"]
5 changes: 5 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -Eeo pipefail

./grabrepos.py
hugo

0 comments on commit 1c4a4ab

Please sign in to comment.