all repos — NoPaste @ 3e3c433f026c49e04d0efa0f0f39fc688ed32bb1

Resurrected - The PussTheCat.org fork of NoPaste

scripts/CodeMirror/mode/dockerfile/index.html (view raw)

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