use upstream nginx instead of building off it
This commit is contained in:
parent
22f9210d75
commit
2eea8d32e9
3 changed files with 2 additions and 11 deletions
|
@ -1,4 +0,0 @@
|
||||||
FROM docker.io/library/nginx:alpine
|
|
||||||
|
|
||||||
# Copy files to nginx path
|
|
||||||
COPY . /usr/share/nginx/html
|
|
|
@ -1,10 +1,4 @@
|
||||||
systemctl --user stop ttt-org
|
systemctl --user stop ttt-org
|
||||||
cp ttt-org.container ~/.config/containers/systemd
|
cp ttt-org.container ~/.config/containers/systemd
|
||||||
systemctl --user daemon-reload
|
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
|
systemctl --user start ttt-org
|
||||||
|
|
|
@ -3,8 +3,9 @@ Description=TechTransThai.org Website
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
ContainerName=ttt-org
|
ContainerName=ttt-org
|
||||||
Image=ttt-org
|
Image=docker.io/library/nginx:alpine
|
||||||
PublishPort=8082:80
|
PublishPort=8082:80
|
||||||
|
Volume=/run/media/core/Data1/Apps/pages:/usr/share/nginx/html:ro,z
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
Loading…
Reference in a new issue