Update: NodeJS 16 && Yarn

master
Siroco 3 months ago
parent 667f5a5f5a
commit d2036f8487
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 25
      Dockerfile

@ -7,24 +7,31 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends curl gnupg2 ca-certificates git jq
## Node 16 on Debian
RUN curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
RUN apt-get install -y nodejs
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
WORKDIR /
ARG GANCIO_VERSION=master
ARG GITLAB_PROJECT=48668
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
COPY pubkey.gpg /usr/local/share/keyrings/yarn.gpg
RUN gpg --no-default-keyring --keyring ./yarn_keyring.gpg --import /usr/local/share/keyrings/yarn.gpg && \
gpg --no-default-keyring --keyring ./yarn_keyring.gpg --export > ./yarn-archive-keyring.gpg && \
mv ./yarn-archive-keyring.gpg /etc/apt/trusted.gpg.d/
# Install Yarn
#RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
RUN apt-get update && \
apt-get install -y --no-install-recommends yarn
#COPY pubkey.gpg /usr/local/share/keyrings/yarn.gpg
#RUN gpg --no-default-keyring --keyring ./yarn_keyring.gpg --import /usr/local/share/keyrings/yarn.gpg && \
# gpg --no-default-keyring --keyring ./yarn_keyring.gpg --export > ./yarn-archive-keyring.gpg && \
# mv ./yarn-archive-keyring.gpg /etc/apt/trusted.gpg.d/
#RUN apt-get update && \
# apt-get install -y --no-install-recommends yarn
RUN npm install -g 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 && \

Loading…
Cancel
Save