<p>This PR was automatically created by Snyk using the credentials of a real user.</p><br />Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image. #### Changes included in this PR - website/Dockerfile We recommend upgrading to `ubuntu:22.10`, as this image has only 7 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected. Some of the most important vulnerabilities in your base image include: | Severity | Issue | Exploit Maturity | | :------: | :---- | :--------------- | |  | NULL Pointer Dereference <br/>[SNYK-UBUNTU2204-OPENSSL-3314672](https://snyk.io/vuln/SNYK-UBUNTU2204-OPENSSL-3314672) | No Known Exploit | |  | Double Free <br/>[SNYK-UBUNTU2204-OPENSSL-3314696](https://snyk.io/vuln/SNYK-UBUNTU2204-OPENSSL-3314696) | No Known Exploit | |  | CVE-2022-4304 <br/>[SNYK-UBUNTU2204-OPENSSL-3314710](https://snyk.io/vuln/SNYK-UBUNTU2204-OPENSSL-3314710) | No Known Exploit | |  | Access of Resource Using Incompatible Type ('Type Confusion') <br/>[SNYK-UBUNTU2204-OPENSSL-3314792](https://snyk.io/vuln/SNYK-UBUNTU2204-OPENSSL-3314792) | No Known Exploit | |  | Out-of-bounds Read <br/>[SNYK-UBUNTU2204-TAR-3261138](https://snyk.io/vuln/SNYK-UBUNTU2204-TAR-3261138) | No Known Exploit | --- **Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs._ For more information: <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJjOTA4MWU0NS02YWFmLTRkZTItYjg1Yy02OWQ1NjJlYTQwYWUiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImM5MDgxZTQ1LTZhYWYtNGRlMi1iODVjLTY5ZDU2MmVhNDBhZSJ9fQ==" width="0" height="0"/> 🧐 [View latest project report](https://app.snyk.io/org/alcion/project/be35e6c9-5393-4702-af3c-f4aebb53488e?utm_source=github-enterprise&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/alcion/project/be35e6c9-5393-4702-af3c-f4aebb53488e?utm_source=github-enterprise&utm_medium=referral&page=fix-pr/settings) [//]: # 'snyk:metadata:{"prId":"c9081e45-6aaf-4de2-b85c-69d562ea40ae","prPublicId":"c9081e45-6aaf-4de2-b85c-69d562ea40ae","dependencies":[{"name":"ubuntu","from":"22.04","to":"22.10"}],"packageManager":"dockerfile","projectPublicId":"be35e6c9-5393-4702-af3c-f4aebb53488e","projectUrl":"https://app.snyk.io/org/alcion/project/be35e6c9-5393-4702-af3c-f4aebb53488e?utm_source=github-enterprise&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-UBUNTU2204-TAR-3261138","SNYK-UBUNTU2204-OPENSSL-3314792","SNYK-UBUNTU2204-OPENSSL-3314672","SNYK-UBUNTU2204-OPENSSL-3314696","SNYK-UBUNTU2204-OPENSSL-3314710"],"upgrade":["SNYK-UBUNTU2204-OPENSSL-3314672","SNYK-UBUNTU2204-OPENSSL-3314696","SNYK-UBUNTU2204-OPENSSL-3314710","SNYK-UBUNTU2204-OPENSSL-3314792","SNYK-UBUNTU2204-TAR-3261138"],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["updated-fix-title"],"priorityScoreList":[null,null,null,null,null],"remediationStrategy":"vuln"}' --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [NULL Pointer Dereference](https://learn.snyk.io/lessons/null-dereference/cpp/?loc=fix-pr)
30 lines
1.1 KiB
Docker
30 lines
1.1 KiB
Docker
FROM ubuntu:22.10
|
|
LABEL MAINTAINER="Niraj Tolia"
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
# NOTE for lines 13,15: update in CI when updating
|
|
RUN apt-get -y update && apt-get -y install gpg emacs curl zip git make \
|
|
&& curl -fsSL https://deb.nodesource.com/setup_current.x | bash - \
|
|
&& apt-get -y install nodejs \
|
|
&& apt-get autoclean \
|
|
&& node --version \
|
|
&& npm --version \
|
|
&& arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/64-bit/) \
|
|
&& cd /tmp && curl -O -L https://github.com/errata-ai/vale/releases/download/v2.20.1/vale_2.20.1_Linux_${arch}.tar.gz \
|
|
&& tar -xvzf vale_2.20.1_Linux_${arch}.tar.gz -C /usr/bin vale \
|
|
&& npm install -g markdownlint-cli@0.32.2 \
|
|
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-$(arch).zip" -o "awscliv2.zip" \
|
|
&& unzip awscliv2.zip && /bin/bash aws/install && rm -rf awscliv2.zip aws
|
|
|
|
WORKDIR /usr/src
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm ci \
|
|
&& npm cache clean --force \
|
|
&& rm -f package.json package-lock.json*
|
|
ENV PATH /usr/src/node_modules/.bin:$PATH
|
|
|
|
WORKDIR /usr/src/website
|
|
|
|
CMD ["npm", "start", "--", "--host", "0.0.0.0"]
|