mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
build: fix docker build
This commit is contained in:
parent
f9f1049437
commit
9234db8e54
1 changed files with 4 additions and 5 deletions
|
|
@ -14,15 +14,14 @@ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|||
# configure git to use https instead of ssh
|
||||
RUN git config --global url."https://github.com/".insteadOf ssh://git@github.com/
|
||||
|
||||
# install dependencies
|
||||
COPY package*.json /app
|
||||
RUN (npm ci || npm i) && npm i -g @angular/cli
|
||||
# add app
|
||||
COPY . /app
|
||||
|
||||
# add `/app/node_modules/.bin` to $PATH
|
||||
ENV PATH=/app/node_modules/.bin:$PATH
|
||||
|
||||
# add app
|
||||
COPY . /app
|
||||
# install dependencies (with prepare script running naturally)
|
||||
RUN (npm ci || npm i) && npm i -g @angular/cli
|
||||
|
||||
# run linter
|
||||
RUN npm run lint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue