| 776 |
lars |
1 |
<!doctype html>
|
|
|
2 |
<title>CodeMirror: Dockerfile mode</title>
|
|
|
3 |
<meta charset="utf-8" />
|
|
|
4 |
<link rel=stylesheet href="../../doc/docs.css">
|
|
|
5 |
<link rel="stylesheet" href="../../lib/codemirror.css">
|
|
|
6 |
<script src="../../lib/codemirror.js"></script>
|
|
|
7 |
<script src="../../addon/mode/simple.js"></script>
|
|
|
8 |
<script src="dockerfile.js"></script>
|
|
|
9 |
<style type="text/css">
|
|
|
10 |
.CodeMirror {
|
|
|
11 |
border-top: 1px solid black;
|
|
|
12 |
border-bottom: 1px solid black;
|
|
|
13 |
}
|
|
|
14 |
</style>
|
|
|
15 |
<div id=nav>
|
|
|
16 |
<a href="http://codemirror.net">
|
|
|
17 |
<h1>CodeMirror</h1>
|
|
|
18 |
<img id=logo src="../../doc/logo.png">
|
|
|
19 |
</a>
|
|
|
20 |
<ul>
|
|
|
21 |
<li>
|
|
|
22 |
<a href="../../index.html">Home</a>
|
|
|
23 |
<li>
|
|
|
24 |
<a href="../../doc/manual.html">Manual</a>
|
|
|
25 |
<li>
|
|
|
26 |
<a href="https://github.com/codemirror/codemirror">Code</a>
|
|
|
27 |
</ul>
|
|
|
28 |
<ul>
|
|
|
29 |
<li>
|
|
|
30 |
<a href="../index.html">Language modes</a>
|
|
|
31 |
<li>
|
|
|
32 |
<a class=active href="#">Dockerfile</a>
|
|
|
33 |
</ul>
|
|
|
34 |
</div>
|
|
|
35 |
<article>
|
|
|
36 |
<h2>Dockerfile mode</h2>
|
|
|
37 |
<form>
|
|
|
38 |
<textarea id="code" name="code"># Install Ghost blogging platform and run development environment # # VERSION 1.0.0 FROM ubuntu:12.10 MAINTAINER Amer Grgic "amer@livebyt.es" WORKDIR /data/ghost # Install dependencies for nginx installation RUN apt-get update RUN apt-get install
|
|
|
39 |
-y python g++ make software-properties-common --force-yes RUN add-apt-repository ppa:chris-lea/node.js RUN apt-get update # Install unzip RUN apt-get install -y unzip # Install curl RUN apt-get install -y curl # Install nodejs & npm RUN apt-get
|
|
|
40 |
install -y rlwrap RUN apt-get install -y nodejs # Download Ghost v0.4.1 RUN curl -L https://ghost.org/zip/ghost-latest.zip -o /tmp/ghost.zip # Unzip Ghost zip to /data/ghost RUN unzip -uo /tmp/ghost.zip -d /data/ghost # Add custom config js
|
|
|
41 |
to /data/ghost ADD ./config.example.js /data/ghost/config.js # Install Ghost with NPM RUN cd /data/ghost/ && npm install --production # Expose port 2368 EXPOSE 2368 # Run Ghost CMD ["npm","start"] </textarea>
|
|
|
42 |
</form>
|
|
|
43 |
<script>
|
|
|
44 |
var editor = CodeMirror.fromTextArea(document.getElementById("code"),
|
|
|
45 |
{
|
|
|
46 |
lineNumbers: true,
|
|
|
47 |
mode: "dockerfile"
|
|
|
48 |
});
|
|
|
49 |
</script>
|
|
|
50 |
<p>Dockerfile syntax highlighting for CodeMirror. Depends on the
|
|
|
51 |
<a href="../../demo/simplemode.html">simplemode</a> addon.</p>
|
|
|
52 |
<p>
|
|
|
53 |
<strong>MIME types defined:</strong> <code>text/x-dockerfile</code></p>
|
|
|
54 |
</article>
|