butlerx
8 years ago
8 changed files with 38 additions and 75 deletions
@ -1,7 +1,7 @@ |
|||||
FROM node:boron |
FROM node:boron-apline |
||||
MAINTAINER Nathan LeClaire <nathan@docker.com> |
MAINTAINER Nathan LeClaire <nathan@docker.com> |
||||
ADD . /app |
ADD . /app |
||||
WORKDIR /app |
WORKDIR /app |
||||
RUN apt-get update && apt-get upgrade -y && yarn |
RUN apk add --update build-base && yarn |
||||
EXPOSE 3000 |
EXPOSE 3000 |
||||
CMD yarn start |
CMD yarn start |
||||
|
@ -1 +1,3 @@ |
|||||
|
#!/usr/bin/env bash |
||||
|
|
||||
kill $(ps aux | grep "ssh" | awk '{print $2}') |
kill $(ps aux | grep "ssh" | awk '{print $2}') |
||||
|
@ -1,48 +0,0 @@ |
|||||
<!doctype html> |
|
||||
<html lang="en"> |
|
||||
<head> |
|
||||
<meta charset="UTF-8"> |
|
||||
<title>Wetty - The WebTTY Terminal Emulator</title> |
|
||||
<script src="/wetty/hterm_all.js"></script> |
|
||||
<script src="/wetty/socket.io/socket.io.js"></script> |
|
||||
<script src="/wetty/wetty.js"></script> |
|
||||
<style> |
|
||||
html, body { |
|
||||
height: 100%; |
|
||||
width: 100%; |
|
||||
margin: 0px; |
|
||||
} |
|
||||
#overlay { |
|
||||
position: absolute; |
|
||||
height: 100%; |
|
||||
width: 100%; |
|
||||
background-color: rgba(0,0,0,0.75);; |
|
||||
display: none; |
|
||||
z-index: 100; |
|
||||
} |
|
||||
#overlay input { |
|
||||
display: block; |
|
||||
margin: auto; |
|
||||
position: relative; |
|
||||
top: 50%; |
|
||||
transform: translateY(-50%); |
|
||||
} |
|
||||
#terminal { |
|
||||
display: block; |
|
||||
position: relative; |
|
||||
width: 100%; |
|
||||
height: 100%; |
|
||||
} |
|
||||
</style> |
|
||||
</head> |
|
||||
<body> |
|
||||
<div id="overlay"><input type="button" onclick="javascript:location.reload();" value="reconnect" /></div> |
|
||||
<div id="terminal" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div> |
|
||||
<script type="application/javascript"> |
|
||||
window.addEventListener('beforeunload', function(e) { |
|
||||
e.returnValue = "Are you sure?"; |
|
||||
return e.returnValue; |
|
||||
}); |
|
||||
</script> |
|
||||
</body> |
|
||||
</html> |
|
Loading…
Reference in new issue