mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(Dockerfile) alpine: rm node-pty < 0.6.3 fallback
This commit is contained in:
parent
25c480ae22
commit
45a6a08fc1
1 changed files with 3 additions and 10 deletions
|
|
@ -7,17 +7,10 @@ WORKDIR /usr/src/app
|
|||
COPY package.json /usr/src/app/
|
||||
|
||||
RUN npm install --production && \
|
||||
apk add --no-cache git bash make g++ python && \
|
||||
npm i node-pty@">0.6.2" || \
|
||||
(cd node_modules && \
|
||||
git clone https://github.com/Tyriar/node-pty && \
|
||||
cd node-pty && \
|
||||
npm i && npm run tsc && \
|
||||
npm run install && \
|
||||
rm -rf .git && \
|
||||
cd ../..) && \
|
||||
apk update && \
|
||||
apk add --no-cache bash make g++ python && \
|
||||
npm i gritty && \
|
||||
apk del git make g++ python && \
|
||||
apk del make g++ python && \
|
||||
rm -rf /usr/include /tmp/* /var/cache/apk/*
|
||||
|
||||
COPY . /usr/src/app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue