File: Dockerfile

package info (click to toggle)
golang-github-openshift-imagebuilder 1.2.15%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,776 kB
  • sloc: makefile: 18; sh: 3; ansic: 1
file content (93 lines) | stat: -rw-r--r-- 1,413 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM docker.io/library/python:latest
RUN <<EOF
echo "Hello" >> /hello
echo "World!" >> /hello
EOF

RUN <<-EOF
echo "hello"
echo "world"
EOF

RUN <<heredoc
echo "hello"
echo "world"
heredoc

RUN <<-heredoc
echo "hello"
echo "world"
heredoc

RUN 0<<heredoc
echo "hello"
echo "world"
heredoc

RUN 0<<-heredoc
echo "hello"
echo "world"
heredoc

RUN 0<<-"heredoc"
echo "hello"
echo "world"
heredoc

RUN 0<<"heredoc"
echo "hello"
echo "world"
heredoc

RUN 5<<EOF cat /proc/self/fd/5 > file.txt
this is the file
EOF

RUN cat /proc/self/fd/5 /proc/self/fd/6 5<<FILE1 6<<FILE2 > file.txt
this is the first file
FILE1
this is the second file
FILE2

RUN cat /proc/self/fd/5 /proc/self/fd/6 5<<FILE1 > file.txt 6<<FILE2
this is the first file
FILE1
this is the second file
FILE2

RUN cat 0<<EOF > file.txt
this is the file
EOF

RUN 5<<file cat /proc/self/fd/5 /proc/self/fd/6 6<<FILE | cat /dev/stdin /proc/self/fd/6 6<<File > file.txt
this is the first file
file
this is the second file
FILE
this is the third file
File

RUN python3 <<EOF
with open("/hello", "w") as f:
    print("Hello", file=f)
    print("Something", file=f)
EOF

ADD <<EOF /index.html
(your index page goes here)
EOF

COPY <<robots.txt <<humans.txt /test/
(robots content)
robots.txt
(humans content)
humans.txt

# heredoc with terminator followed by
# non-empty line.
RUN 0<<-"heredoc"
echo "hello"
echo "world"
heredoc
RUN cat index.html
RUN cat hello