## Description This makes it so that we have an option to locally run all Makefile targets without having to go through Docker. That said, it retains Docker as the default way to run it, but now we can set an evn variable `CORSO_USE_DOCKER=-1` to skip running through docker. I understand if this looks a bit hacky and don't want to add it in, but thought I wold propose this anyways. While not major, I was able to get a good amount of decrease in build times. ## 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. --> * #<issue> ## Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
31 lines
807 B
Docker
31 lines
807 B
Docker
FROM ubuntu:22.04
|
|
LABEL MAINTAINER="Niraj Tolia"
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
WORKDIR /usr/src/
|
|
|
|
RUN apt-get -y update && apt-get -y install curl zip make git emacs \
|
|
&& curl -fsSL https://deb.nodesource.com/setup_current.x | bash - \
|
|
&& apt-get -y install nodejs \
|
|
&& apt-get autoclean \
|
|
&& npm install -g gulp \
|
|
&& corepack enable \
|
|
&& node --version \
|
|
&& npm --version \
|
|
&& yarn --version \
|
|
&& gulp --version
|
|
|
|
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
|
|
unzip awscliv2.zip && /bin/bash /usr/src/aws/install
|
|
|
|
WORKDIR /usr/src
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn install \
|
|
&& yarn cache clean \
|
|
&& rm -f package.json yarn.lock
|
|
ENV PATH /usr/src/node_modules/.bin:$PATH
|
|
ENV NODE_MODULES_PATH ../
|
|
|
|
WORKDIR /usr/src/website
|