<!-- PR description--> `make buildimage` currently fails with `/bin/sh: 1: unzip: not found`. Adding a command to install unzip. --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [x] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> #### Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
33 lines
1.4 KiB
Docker
33 lines
1.4 KiB
Docker
FROM ubuntu:23.04
|
|
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"]
|