use upstream nginx instead of building off it

This commit is contained in:
Late Night Defender 2024-04-10 04:37:46 +07:00
parent 22f9210d75
commit 2eea8d32e9
3 changed files with 2 additions and 11 deletions

View file

@ -1,4 +0,0 @@
FROM docker.io/library/nginx:alpine
# Copy files to nginx path
COPY . /usr/share/nginx/html

View file

@ -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

View file

@ -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