|
|
|
FROM registry.sindominio.net/debian as builder
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends curl gnupg2 ca-certificates
|
|
|
|
|
|
|
|
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list && \
|
|
|
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
|
|
|
|
|
|
|
|
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
|
|
|
|
|
|
|
# Install Yarn
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends yarn
|
|
|
|
|
|
|
|
# Install Node Latest
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
|
|
|
RUN apt-get install -y nodejs
|
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
RUN yarn global remove gancio || true
|
|
|
|
RUN yarn cache clean
|
|
|
|
RUN yarn global add --latest --production --silent https://gancio.org/latest.tgz 2> /dev/null
|
|
|
|
|
|
|
|
WORKDIR /opt/gancio
|
|
|
|
|
|
|
|
# Creo que lo podemos evitar, pero yo lo dejo
|
|
|
|
ARG GANCIO_UID=115
|
|
|
|
RUN useradd -u $GANCIO_UID -g nogroup gancio
|
|
|
|
|
|
|
|
RUN chown -R gancio:nogroup /opt/gancio
|
|
|
|
|
|
|
|
# Compiar el script de entrada del repo y ejecutar
|
|
|
|
#ADD entrypoint.sh /
|
|
|
|
#RUN chmod 755 /entrypoint.sh
|
|
|
|
#ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ]
|