use bash script to run site

This commit is contained in:
len0rd 2023-06-08 11:12:32 -04:00
parent b52ddcb0d8
commit d8fa64a9ae
3 changed files with 7 additions and 5 deletions

View file

@ -24,8 +24,7 @@ ENV XVFB_DISPLAY ":42"
FROM dev as prod FROM dev as prod
# Bundle app source # Bundle app source
COPY . . COPY . /website
RUN ablog build WORKDIR /website
EXPOSE 8090 EXPOSE 8090
CMD [ "ablog", "serve", "-p", "8090" ] CMD [ "./container_serve.sh" ]

View file

@ -13,7 +13,6 @@ extensions = [
"sphinxcontrib.drawio", "sphinxcontrib.drawio",
] ]
html_static_path = ["_static"]
templates_path = ["_templates"] templates_path = ["_templates"]
blog_baseurl = "https://lenord.me/" blog_baseurl = "https://lenord.me/"

4
container_serve.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
ablog build
ablog serve -p 8090