## Description This reworks CI now that we have merged docs and website into a single deployment. ## Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [x] 💻 CI/Deployment - [ ] 🐹 Trivial/Minor ## Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * Fixes https://github.com/alcionai/corso/issues/1551 ## Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
29 lines
1.0 KiB
Docker
29 lines
1.0 KiB
Docker
FROM ubuntu:22.04
|
|
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 \
|
|
&& cd /tmp && curl -O -L https://github.com/errata-ai/vale/releases/download/v2.20.1/vale_2.20.1_Linux_64-bit.tar.gz \
|
|
&& tar -xvzf vale_2.20.1_Linux_64-bit.tar.gz -C /usr/bin vale \
|
|
&& npm install -g markdownlint-cli@0.32.2 \
|
|
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.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"]
|