Skip to content

Commit 62ed23d

Browse files
Added a docker file to run SLDN on
1 parent 1608c4c commit 62ed23d

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM icr.io/ibm/alpine
2+
RUN mkdir -p /home/sldn/html
3+
COPY ./ /home/sldn
4+
WORKDIR "/home/sldn"
5+
EXPOSE 1313
6+
RUN ./bin/hugo -d html -b http://localhost:1313
7+
WORKDIR "/home/sldn/html"
8+
RUN apk add mini_httpd
9+
RUN chown minihttpd /home/sldn/html
10+
CMD mini_httpd -C "/home/sldn/min_http.conf" -D -l stdout

min_http.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## do not leave empty lines in here!
2+
#host=www.example.org
3+
port=1313
4+
user=minihttpd
5+
dir=/home/sldn/html
6+
nochroot

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
click
2+
requests

0 commit comments

Comments
 (0)