Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8.12.0-stretch
FROM node:17.3-bullseye-slim
LABEL maintainer "Code Climate <hello@codeclimate.com>"

RUN adduser --uid 9000 --gecos "" --disabled-password app
Expand All @@ -15,9 +15,10 @@ RUN mkdir $PREFIX
COPY bin/docs ./bin/docs
COPY engine.json package.json yarn.lock ./

RUN apt-get update && apt-get install -y gnupg

RUN apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg && \
echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && \
apt-get install -y git jq yarn && \
yarn config set prefix $PREFIX && \
yarn install --modules-folder $PREFIX && \
Expand Down