From dc0a24015c075d98bfbc947fae67b637e132d4fe Mon Sep 17 00:00:00 2001 From: VRSasha Date: Mon, 24 Jul 2023 11:54:27 +0700 Subject: [PATCH] Update installation scripts --- Dockerfile | 3 +-- install.sh | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 install.sh diff --git a/Dockerfile b/Dockerfile index 1e52fe8..6fef3e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ FROM nginx:alpine # Copy files to nginx path -RUN cp index.html /usr/share/nginx/html - +COPY . /usr/share/nginx/html diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..bb35de0 --- /dev/null +++ b/install.sh @@ -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) \ No newline at end of file