fix docker setup

This commit is contained in:
les
2021-07-01 10:56:12 +02:00
parent c42d5d4276
commit 11e026e099
5 changed files with 16 additions and 6 deletions

View File

@@ -1,2 +1,6 @@
FROM node:buster
RUN yarn global add --silent https://gancio.org/latest.tgz 2> /dev/null
ADD entrypoint.sh /
RUN chmod 755 /entrypoint.sh
ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ]

4
docs/docker/entrypoint.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
chown -R node:node /home/node
su node -c "$*"

View File

@@ -19,12 +19,13 @@ services:
build: .
restart: always
image: node:buster
user: node
container_name: gancio
environment:
- PATH=$PATH:/home/node/.yarn/bin
- GANCIO_DATA=/home/node/data
- NODE_ENV=production
command: gancio start --docker
entrypoint: /entrypoint.sh
volumes:
- ./data:/home/node/data
ports:

View File

@@ -5,11 +5,12 @@ services:
build: .
restart: always
image: node:buster
user: node
container_name: gancio
environment:
- PATH=$PATH:/home/node/.yarn/bin
- GANCIO_DATA=/home/node/data
- NODE_ENV=production
entrypoint: /entrypoint.sh
command: gancio start --docker
volumes:
- ./data:/home/node/data