fix docker setup
This commit is contained in:
@@ -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
4
docs/docker/entrypoint.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
chown -R node:node /home/node
|
||||
su node -c "$*"
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user