|
|
|
@ -1,7 +1,5 @@
|
|
|
|
|
## ARGUMENTOS: |
|
|
|
|
## GANCIO_VERSION tag/rama desde la que se construye gancio (defecto: master) |
|
|
|
|
## GANCIO_UID uid (identificador numerico) de la usuaria que ejecutara gancio (defecto: 110) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM registry.sindominio.net/debian as builder |
|
|
|
|
|
|
|
|
@ -24,20 +22,21 @@ RUN git clone https://framagit.org/les/gancio.git && \
|
|
|
|
|
cd gancio && \ |
|
|
|
|
git checkout $GANCIO_VERSION |
|
|
|
|
|
|
|
|
|
# TODO: Check Sign |
|
|
|
|
|
|
|
|
|
WORKDIR /gancio |
|
|
|
|
|
|
|
|
|
RUN yarn install && \ |
|
|
|
|
yarn build && \ |
|
|
|
|
yarn pack --filename=gancio.tgz |
|
|
|
|
|
|
|
|
|
# --- # |
|
|
|
|
|
|
|
|
|
FROM registry.sindominio.net/debian |
|
|
|
|
|
|
|
|
|
RUN apt-get update && \ |
|
|
|
|
apt-get install -y --no-install-recommends curl gnupg2 ca-certificates git npm |
|
|
|
|
|
|
|
|
|
# --- # |
|
|
|
|
|
|
|
|
|
COPY --from=builder /gancio/gancio.tgz ./ |
|
|
|
|
|
|
|
|
|
RUN tar zxf gancio.tgz && \ |
|
|
|
|