diff --git a/.gitignore b/.gitignore index 3cda6cd..090a5b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -src/dist \ No newline at end of file +src/dist +dev/docker/stacks/main/assets \ No newline at end of file diff --git a/dev/docker/stacks/main/compose.yml b/dev/docker/stacks/main/compose.yml new file mode 100644 index 0000000..c0ba82f --- /dev/null +++ b/dev/docker/stacks/main/compose.yml @@ -0,0 +1,9 @@ +version: '3' +services: + app: + image: nikurasukun/socialtree + container_name: socialtree + volumes: + - ./assets:/app/assets/ + ports: + - 80:3000 \ No newline at end of file diff --git a/dev/shell/docker-prod.sh b/dev/shell/docker-prod.sh new file mode 100755 index 0000000..4a8bb84 --- /dev/null +++ b/dev/shell/docker-prod.sh @@ -0,0 +1 @@ +docker build -t nikurasukun/socialtree -f dev/docker/images/main/Dockerfile --no-cache . \ No newline at end of file diff --git a/dev/shell/entrypoint.sh b/dev/shell/entrypoint.sh index 430cf11..1596c1b 100644 --- a/dev/shell/entrypoint.sh +++ b/dev/shell/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/sh if [[ ! -d "/app/assets/config" ]] && [[ ! -d "/app/assets/img" ]]; then echo "No config found, installing default files" - cp -R /assets/ /app/assets + cp -R /assets/* /app/assets fi echo "Starting node application" diff --git a/package.json b/package.json index c5f77b9..005d742 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "socialtree", - "version": "0.0.0", + "version": "0.1.0", "description": "The awesome and damn simple, selfhosted alternative to linktree", "main": "src/index.js", "author": "nikurasu",