diff --git a/README.md b/README.md index 3f5e97c..d29935d 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,15 @@ hugo serve this will run a live-reloaded dev server of hugo. +## dev: redbuild shell + +```sh +# build container and launch shell +redbuild shell --crun-args "-p 1313:1313" +# run hugo serve inside container +hugo serve --bind 0.0.0.0 +``` + ## build ```sh diff --git a/build.docker b/build.docker new file mode 100644 index 0000000..a1ea017 --- /dev/null +++ b/build.docker @@ -0,0 +1,16 @@ +FROM debian:bookworm-slim + +# install dependencies +RUN apt-get update && apt-get install -y \ + bash curl wget \ + hugo \ + && rm -rf /var/lib/apt/lists/* && apt autoremove -y && apt clean + +# expose 1313 +EXPOSE 1313 + +# set up working directory +WORKDIR /prj + +# set up main to run bash +CMD ["/bin/bash", "-l"] \ No newline at end of file