new file: Dockerfile

new file:   Jenkinsfile
	new file:   run.sh
Initial commit
This commit is contained in:
Jonathan Ervine
2020-02-25 17:09:52 +08:00
parent f95949b1bd
commit b93486036f
3 changed files with 67 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# Base on latest (edge) alpine image
FROM node:10-alpine
MAINTAINER Sven Fischer <sven@leiderfischer.de>
WORKDIR /src
RUN apk add --no-cache --virtual .build-deps \
git python make g++ \
&& apk add --no-cache openssh-client \
&& git clone https://github.com/krishnasrinivas/wetty --branch v1.1.4 /src \
&& npm install \
&& apk del .build-deps \
&& adduser -h /src -D term \
&& npm run-script build
ADD run.sh /src
# Default ENV params used by wetty
ENV REMOTE_SSH_SERVER=127.0.0.1 \
REMOTE_SSH_PORT=22
EXPOSE 3000
ENTRYPOINT "./run.sh"