Update installation scripts
This commit is contained in:
parent
18f5c5cd7b
commit
dc0a24015c
2 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
# Copy files to nginx path
|
# Copy files to nginx path
|
||||||
RUN cp index.html /usr/share/nginx/html
|
COPY . /usr/share/nginx/html
|
||||||
|
|
||||||
|
|
7
install.sh
Normal file
7
install.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
podman stop ttt-org
|
||||||
|
podman rm ttt-org
|
||||||
|
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:$(date -I) .
|
||||||
|
podman run --name ttt-org -p 8084:80 -d ttt-org:$(date -I)
|
Loading…
Reference in a new issue