diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 299ac20..0000000 --- a/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM docker.io/library/nginx:alpine - -# Copy files to nginx path -COPY . /usr/share/nginx/html diff --git a/install.sh b/install.sh index d40fd55..74574c9 100755 --- a/install.sh +++ b/install.sh @@ -1,10 +1,4 @@ systemctl --user stop ttt-org cp ttt-org.container ~/.config/containers/systemd systemctl --user daemon-reload - -sed -i "s/DATE/$(date -I)/g" index.html -sed -i "s/VERSION/$(git log -1 --oneline | awk '{print $1}')/g" index.html -podman build -t ttt-org . - - systemctl --user start ttt-org diff --git a/ttt-org.container b/ttt-org.container index b327621..6cf886b 100644 --- a/ttt-org.container +++ b/ttt-org.container @@ -3,8 +3,9 @@ Description=TechTransThai.org Website [Container] ContainerName=ttt-org -Image=ttt-org +Image=docker.io/library/nginx:alpine PublishPort=8082:80 +Volume=/run/media/core/Data1/Apps/pages:/usr/share/nginx/html:ro,z [Service] Restart=always