<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:mantic-20231011`, as this image has only 8 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 | Priority Score / 1000 | Issue | Exploit Maturity | | :------: | :-------------------- | :---- | :--------------- | |  | **150** | Improper Input Validation <br/>[SNYK-UBUNTU2304-COREUTILS-5484945](https://snyk.io/vuln/SNYK-UBUNTU2304-COREUTILS-5484945) | No Known Exploit | |  | **150** | Allocation of Resources Without Limits or Throttling <br/>[SNYK-UBUNTU2304-GLIBC-5484975](https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5484975) | No Known Exploit | |  | **300** | Memory Leak <br/>[SNYK-UBUNTU2304-GLIBC-5919743](https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5919743) | No Known Exploit | |  | **300** | Memory Leak <br/>[SNYK-UBUNTU2304-GLIBC-5919743](https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5919743) | No Known Exploit | |  | **300** | CVE-2020-22916 <br/>[SNYK-UBUNTU2304-XZUTILS-5854648](https://snyk.io/vuln/SNYK-UBUNTU2304-XZUTILS-5854648) | 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=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJlMGFiYWIxYS0xMTNhLTQ0YjgtYjE3Yy0yZmI2ZTllOWRlNDAiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImUwYWJhYjFhLTExM2EtNDRiOC1iMTdjLTJmYjZlOWU5ZGU0MCJ9fQ==" 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":"e0abab1a-113a-44b8-b17c-2fb6e9e9de40","prPublicId":"e0abab1a-113a-44b8-b17c-2fb6e9e9de40","dependencies":[{"name":"ubuntu","from":"23.04","to":"mantic-20231011"}],"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-UBUNTU2304-GLIBC-5919743","SNYK-UBUNTU2304-XZUTILS-5854648","SNYK-UBUNTU2304-COREUTILS-5484945","SNYK-UBUNTU2304-GLIBC-5484975"],"upgrade":["SNYK-UBUNTU2304-COREUTILS-5484945","SNYK-UBUNTU2304-GLIBC-5484975","SNYK-UBUNTU2304-GLIBC-5919743","SNYK-UBUNTU2304-GLIBC-5919743","SNYK-UBUNTU2304-XZUTILS-5854648"],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","priorityScore"],"priorityScoreList":[300,300,150,150],"remediationStrategy":"vuln"}' --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Memory Leak](https://learn.snyk.io/lesson/memory-leaks/?loc=fix-pr) 🦉 [Improper Input Validation](https://learn.snyk.io/lesson/improper-input-validation/?loc=fix-pr) 🦉 [Allocation of Resources Without Limits or Throttling](https://learn.snyk.io/lesson/no-rate-limiting/?loc=fix-pr)
33 lines
1.4 KiB
Docker
33 lines
1.4 KiB
Docker
FROM ubuntu:mantic-20231011
|
|
LABEL MAINTAINER="Niraj Tolia"
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
# NOTE for lines 17,19: update in CI when updating
|
|
RUN apt-get -y update && apt-get -y install gpg curl git make ca-certificates gnupg unzip \
|
|
&& mkdir -p /etc/apt/keyrings \
|
|
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
|
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
|
|
&& apt-get update \
|
|
&& 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"]
|