Fix: Change Node version Debian

Signed-off-by: Siroco <siroco@piperrak.cc>
master
Siroco 3 months ago
parent c663c45aad
commit 1dccf28243
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 13
      Dockerfile

@ -4,12 +4,13 @@
FROM registry.sindominio.net/debian as builder
RUN apt-get update && \
apt-get install -y --no-install-recommends curl gnupg2 ca-certificates git jq
apt-get install -y --no-install-recommends curl gnupg2 ca-certificates git jq \
nodejs npm
## Node 16 on Debian
RUN echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends -t testing nodejs npm
#RUN echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list && \
# apt-get update && \
# apt-get install -y --no-install-recommends -t testing nodejs npm
WORKDIR /
@ -26,14 +27,14 @@ RUN gpg --no-default-keyring --keyring ./yarn_keyring.gpg --import /usr/local/sh
mv ./yarn-archive-keyring.gpg /etc/apt/trusted.gpg.d/
RUN apt-get update && \
apt-get install -y --no-install-recommends yarn
apt-get install -y --no-install-recommends yarn
# Install latest signed Gancio
RUN COMMIT=`git ls-remote --tags https://framagit.org/les/gancio.git | tail -n1 | cut -f1` && \
VERIFIED=`curl https://framagit.org/api/v4/projects/$GITLAB_PROJECT/repository/commits/$COMMIT/signature | jq '.verification_status'` && \
[ $VERIFIED="verified" ] || exit 1 && \
echo $COMMIT && \
git clone https://framagit.org/les/gancio.git && \
git clone https://framagit.org/les/gancio.git && \
cd gancio && \
git checkout -b $COMMIT

Loading…
Cancel
Save