Skip to content

Commit

Permalink
add redbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
redthing1 committed Sep 20, 2024
1 parent 6702c0f commit 815c537
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions build.docker
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 815c537

Please sign in to comment.