make the web deployable to ttt-org servers
This commit is contained in:
parent
a77b08b0ec
commit
d066ec9bcd
4 changed files with 34 additions and 4 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM docker.io/library/nginx:alpine
|
||||||
|
|
||||||
|
RUN apk add hugo
|
||||||
|
|
||||||
|
RUN mkdir /opt/compute4change-news
|
||||||
|
|
||||||
|
COPY . /opt/compute4change-news
|
||||||
|
|
||||||
|
WORKDIR /opt/compute4change-news
|
||||||
|
|
||||||
|
RUN hugo
|
||||||
|
|
||||||
|
RUN cp -r pubilc/* /usr/share/nginx/html
|
13
compute4change-news.container
Normal file
13
compute4change-news.container
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=TechTransThai.org Website
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
ContainerName=ttt-org
|
||||||
|
Image=ttt-org
|
||||||
|
PublishPort=8091:80
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target default.target
|
|
@ -45,10 +45,6 @@ params:
|
||||||
# disableHLJS: true # to disable highlight.js
|
# disableHLJS: true # to disable highlight.js
|
||||||
# disableFingerprinting: true
|
# disableFingerprinting: true
|
||||||
favicon: "/favicon.ico"
|
favicon: "/favicon.ico"
|
||||||
favicon16x16: "<link / abs url>"
|
|
||||||
favicon32x32: "<link / abs url>"
|
|
||||||
apple_touch_icon: "<link / abs url>"
|
|
||||||
safari_pinned_tab: "<link / abs url>"
|
|
||||||
|
|
||||||
# home-info mode
|
# home-info mode
|
||||||
homeInfoParams:
|
homeInfoParams:
|
||||||
|
|
8
install.sh
Normal file
8
install.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
systemctl --user stop compute4change-news
|
||||||
|
cp compute4change-news.container ~/.config/containers/systemd
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
|
||||||
|
podman build -t compute4change-news .
|
||||||
|
|
||||||
|
|
||||||
|
systemctl --user start compute4change-news
|
Loading…
Reference in a new issue