Browse Source

Add: Installer on Dockerfile and Entrypoint

master
Siroco 3 months ago
parent
commit
5f90ce6eb9
Signed by: siroco GPG Key ID: 1324098302A514B0
  1. 12
      Dockerfile
  2. 1
      entrypoint.sh

12
Dockerfile

@ -30,6 +30,16 @@ RUN yarn install && \
yarn build && \
yarn pack --filename=gancio.tgz
RUN apt-get install -y --no-install-recomends golang
WORKDIR /
COPY installer .
WORKDIR /installer
RUN go get . && \
go build -o gancio-installer
# --- #
FROM registry.sindominio.net/debian
@ -49,6 +59,8 @@ WORKDIR /gancio
RUN npm install --production && \
ln -s /gancio/server/cli.js /usr/bin/gancio
COPY --from=builder /installer/gancio-installer /usr/bin/gancio-installer
ADD entrypoint.sh /
RUN chmod 755 /entrypoint.sh

1
entrypoint.sh

@ -9,6 +9,7 @@ mkdir -p /data/uploads
[ -f /data/config.json ] || touch /data/config.json
# crear una configuracion por defecto
# TODO: arranca el web installer - #goforms?
/usr/bin/gancio-installer
[ -s /data/config.json ] || cp /gancio/config.json.example /data/config.json
# Admin Email Configuration
[ -n $GANCIO_ADMIN_EMAIL ] && sed -i "s/\"admin_email\".*/\"admin_email\": \"$GANCIO_ADMIN_EMAIL\"/g" /data/config.json

Loading…
Cancel
Save