mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
31 lines
707 B
Text
31 lines
707 B
Text
FROM mhart/alpine-node
|
|
MAINTAINER Coderaiser
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
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 ../..) && \
|
|
npm i gritty && \
|
|
apk del git make g++ python && \
|
|
rm -rf /usr/include /tmp/* /var/cache/apk/*
|
|
|
|
COPY . /usr/src/app
|
|
|
|
ENV cloudcmd_terminal true
|
|
ENV cloudcmd_terminal_path gritty
|
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT ["bin/cloudcmd.js"]
|
|
|