fix build broken by COPY peculiarity
COPY [--chown=<user>:<group>] <src>... <dest> The <src> path must be inside the context of the build; you cannot COPY ../something /something, because the first step of a docker build is to send the context directory (and subdirectories) to the docker daemon. If <src> is a directory, the entire contents of the directory are copied, including filesystem metadata. !!!!The directory itself is not copied, just its contents.!!!! Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
server_name=paste.jpi.io
|
||||
bind_addr=0.0.0.0
|
||||
bind_port=80
|
||||
paste_dir=/binnit/paste
|
||||
templ_dir=/binnit/html
|
||||
static_dir=/binnit/static
|
||||
max_size=16384
|
||||
log_file=/binnit/log/binnit.log
|
||||
@@ -0,0 +1,39 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" media="screen, projection" href="/static/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Binnit</h1>
|
||||
<form method="POST">
|
||||
<div class="title">
|
||||
<p class="title">
|
||||
<input type="text" name="title" placeholder="Title goes here..."/>
|
||||
</p>
|
||||
<p class="action">
|
||||
<input type="checkbox" name="show" value="1" id="id_show" checked />
|
||||
<label for "id_show"> Show link </label>
|
||||
<select name="lang">
|
||||
<option value="">Language</option>
|
||||
<option value="markup">Markup</option>
|
||||
<option value="css">CSS</option>
|
||||
<option value="clike">C-like</option>
|
||||
<option value="c">C</option>
|
||||
<option value="asciidoc">AsciiDoc</option>
|
||||
<option value="bash">Bash</option>
|
||||
<option value="diff">Diff</option>
|
||||
<option value="docker">Docker</option>
|
||||
<option value="go">Go</option>
|
||||
<option value="less">Less</option>
|
||||
<option value="ini">Ini</option>
|
||||
<option value="markdown">Markdown</option>
|
||||
<option value="nginx">NginX</option>
|
||||
</select>
|
||||
<input type="submit" class="button" value="Binnit!">
|
||||
</p>
|
||||
</div>
|
||||
<div class="title">
|
||||
<textarea name="paste" cols="40" placeholder="The pasta goes here..." rows="10" maxlength="262144000"></textarea>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>binit</title>
|
||||
<link rel="stylesheet" media="screen, projection" href="/static/paste.css">
|
||||
<link rel="stylesheet" media="screen, projection" href="/static/prism.css">
|
||||
</head>
|
||||
<body>
|
||||
<script src="/static/prism.js"></script>
|
||||
<div class="title">
|
||||
Title: {{TITLE}}
|
||||
Language: {{LANGUAGE}}
|
||||
</div>
|
||||
<div class="date">
|
||||
Date: {{DATE}}
|
||||
</div>
|
||||
<div class="content">
|
||||
{{CONTENT}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,65 @@
|
||||
body {
|
||||
margin: 0px;
|
||||
font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial;
|
||||
font-size:20px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0px;
|
||||
padding: 10px 30px 0 30px;
|
||||
line-height:2.5;
|
||||
color: #fff;
|
||||
background: linear-gradient(to right, #4A90E2, #72B4E4);
|
||||
}
|
||||
|
||||
div.title {
|
||||
margin: 3px;
|
||||
padding: 0 30px 0 30px;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
input.button {
|
||||
padding: 5px;
|
||||
font-size: 20px;
|
||||
color: #fff;
|
||||
background-color: #4a90e2;
|
||||
border: 1px solid #33639c;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
input.text {
|
||||
font-size:16px;
|
||||
height:20px;
|
||||
border: 1px solid #ededed;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
p.action {
|
||||
margin-left: auto;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
p.title {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 15px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
select {
|
||||
border-radius: 3px;
|
||||
padding: 5px;
|
||||
font-size: 20px;
|
||||
color: #fff;
|
||||
background-color: #4a90e2;
|
||||
border: 1px solid #33639c;
|
||||
margin-right: 1px;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
body {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
div.title {
|
||||
margin: 3px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
div.date {
|
||||
margin: 3px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
/* PrismJS 1.15.0
|
||||
https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+c+asciidoc+bash+diff+docker+go+less+ini+markdown+nginx&plugins=line-numbers */
|
||||
/**
|
||||
* okaidia theme for JavaScript, CSS and HTML
|
||||
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
|
||||
* @author ocodia
|
||||
*/
|
||||
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
color: #f8f8f2;
|
||||
background: none;
|
||||
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
word-wrap: normal;
|
||||
line-height: 1.5;
|
||||
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
overflow: auto;
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
background: #272822;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
:not(pre) > code[class*="language-"] {
|
||||
padding: .1em;
|
||||
border-radius: .3em;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: slategray;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #f8f8f2;
|
||||
}
|
||||
|
||||
.namespace {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.token.property,
|
||||
.token.tag,
|
||||
.token.constant,
|
||||
.token.symbol,
|
||||
.token.deleted {
|
||||
color: #f92672;
|
||||
}
|
||||
|
||||
.token.boolean,
|
||||
.token.number {
|
||||
color: #ae81ff;
|
||||
}
|
||||
|
||||
.token.selector,
|
||||
.token.attr-name,
|
||||
.token.string,
|
||||
.token.char,
|
||||
.token.builtin,
|
||||
.token.inserted {
|
||||
color: #a6e22e;
|
||||
}
|
||||
|
||||
.token.operator,
|
||||
.token.entity,
|
||||
.token.url,
|
||||
.language-css .token.string,
|
||||
.style .token.string,
|
||||
.token.variable {
|
||||
color: #f8f8f2;
|
||||
}
|
||||
|
||||
.token.atrule,
|
||||
.token.attr-value,
|
||||
.token.function,
|
||||
.token.class-name {
|
||||
color: #e6db74;
|
||||
}
|
||||
|
||||
.token.keyword {
|
||||
color: #66d9ef;
|
||||
}
|
||||
|
||||
.token.regex,
|
||||
.token.important {
|
||||
color: #fd971f;
|
||||
}
|
||||
|
||||
.token.important,
|
||||
.token.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.token.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.token.entity {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
pre[class*="language-"].line-numbers {
|
||||
position: relative;
|
||||
padding-left: 3.8em;
|
||||
counter-reset: linenumber;
|
||||
}
|
||||
|
||||
pre[class*="language-"].line-numbers > code {
|
||||
position: relative;
|
||||
white-space: inherit;
|
||||
}
|
||||
|
||||
.line-numbers .line-numbers-rows {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
top: 0;
|
||||
font-size: 100%;
|
||||
left: -3.8em;
|
||||
width: 3em; /* works for line-numbers below 1000 lines */
|
||||
letter-spacing: -1px;
|
||||
border-right: 1px solid #999;
|
||||
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
|
||||
}
|
||||
|
||||
.line-numbers-rows > span {
|
||||
pointer-events: none;
|
||||
display: block;
|
||||
counter-increment: linenumber;
|
||||
}
|
||||
|
||||
.line-numbers-rows > span:before {
|
||||
content: counter(linenumber);
|
||||
color: #999;
|
||||
display: block;
|
||||
padding-right: 0.8em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user