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:
2019-01-25 18:34:29 +02:00
parent ed36b94e9f
commit 150d4e9577
9 changed files with 1 additions and 1 deletions
+39
View File
@@ -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>
+20
View File
@@ -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>