diff --git a/Dockerfile b/Dockerfile index 7bc61b4..b877e17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,8 @@ FROM registry.sindominio.net/debian RUN apt-get update && \ - apt-get install -y --no-install-recommends curl gnupg2 ca-certificates git + apt-get install -y --no-install-recommends curl gnupg2 ca-certificates git \ + postgresql-server-dev-all build-essential # Install Node Latest RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \ @@ -31,11 +32,10 @@ RUN git clone https://framagit.org/les/gancio.git && \ WORKDIR /opt/gancio -RUN yarn install && \ - yarn build && \ - yarn pack --filename=gancio.tgz - - +RUN yarn +RUN ./node_modules/.bin/sequelize db:migrate +RUN yarn build +RUN yarn pack --filename=gancio.tgz ## Docker para EJECUCION de Gancio ## diff --git a/docker-compose.yml b/docker-compose.yml index 066b7ae..cdb88e7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,10 @@ version: '3' services: gancio: - build: . + build: + context: . + args: + - GANCIO_VERSION=dev restart: always image: gancio:latest container_name: gancio