diff --git a/Dockerfile b/Dockerfile
index 7243baf2..063b510e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,6 +9,8 @@ RUN apk --no-cache --update \
add apache2 \
apache2-ssl \
curl \
+ jq \
+ 7zip \
php83-apache2 \
php83-bcmath \
php83-bz2 \
@@ -38,7 +40,14 @@ RUN apk --no-cache --update \
tzdata \
&& mkdir /htdocs
-COPY linkstack /htdocs
+RUN TAG=$(curl -s https://api.github.com/repos/LinkStackOrg/LinkStack/releases/latest | jq -r .tag_name) && \
+ curl -L -o linkstack.zip \
+ "https://github.com/LinkStackOrg/LinkStack/releases/download/${TAG}/linkstack.zip" && \
+ 7z x linkstack.zip -o/linkstack && \
+ cp -ar /linkstack/linkstack/. /htdocs && \
+ rm linkstack.zip
+
+
COPY configs/apache2/httpd.conf /etc/apache2/httpd.conf
COPY configs/apache2/ssl.conf /etc/apache2/conf.d/ssl.conf
COPY configs/php/php.ini /etc/php83/conf.d/40-custom.ini
diff --git a/README.md b/README.md
index e7f23ea4..7a47bc58 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@
## About
-The official docker version of [LinkStack](https://github.com/linkstackorg/linkstack). This docker image is a simple to set up solution, containing everything you need to run LinkStack.
+The official docker version of [LinkStack](https://github.com/linkstackorg/linkstack). This docker image is a simple to set up solution, containing everything you need to run LinkStack, plus a copy of the latest release of LinkStack.
The docker version of LinkStack retains all the features and customization options of the [original version](https://github.com/linkstackorg/linkstack).
@@ -139,7 +139,7 @@ Both HTTP and HTTPS are supported and exposed by default.
-
+```bash
docker run --detach \
--name linkstack \
--publish 80:80 \
@@ -147,13 +147,13 @@ docker run --detach \
--restart unless-stopped \
--mount source=linkstack,target=/htdocs \
linkstackorg/linkstack
-
+```
+```bash
docker run --detach \
--name linkstack \
--hostname linkstack \
@@ -168,7 +168,7 @@ docker run --detach \
--restart unless-stopped \
--mount source=linkstack,target=/htdocs \
linkstackorg/linkstack
-
+```
-version: "3.8"
-
+```yml
services:
-
linkstack:
+ container_name: linkstack
hostname: 'linkstack'
image: 'linkstackorg/linkstack:latest'
environment:
@@ -195,12 +193,13 @@ services:
volumes:
- 'linkstack_data:/htdocs'
ports:
+ - '8180:80'
- '8190:443'
restart: unless-stopped
volumes:
linkstack_data:
-
+```
-docker build -t linkstack . -You can now set up your application on your defined ports. + +```bash +$ git clone https://github.com/LinkStackOrg/linkstack-docker.git +$ cd linkstack-docker +$ chown -R 100:101 ./linkstack # Required as the container runs with permissions for apache:apache +$ docker compose up -d --build +``` +You can now set up your application on your defined ports.