summaryrefslogtreecommitdiff
path: root/tests/examplefiles/docker.docker
blob: 1ae3c3a156acb8523787c14ea382c04822f6f9ff (plain)
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
FROM alpine:3.5
MAINTAINER First O'Last

# comment
run echo \
  123 $bar
RUN apk --update add rsync dumb-init

# Test env with both syntax
ENV FOO = "BAR"
ENV FOO \
	"BAR"

COPY foo "bar"
COPY foo \
	"bar"

HEALTHCHECK \
    --interval=5m --timeout=3s \
    CMD curl -f http://localhost/ || exit 1

# ONBUILD keyword, then with linebreak
ONBUILD ADD . /app/src
ONBUILD \
	RUN echo 123 $bar

# Potential JSON array parsing, mixed with linebreaks
VOLUME \
    /foo
VOLUME \
    ["/bar"]
VOLUME ["/bar"]
VOLUME /foo
CMD ["foo", "bar"]