forked from jlhawn/dockramp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 667 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (23 loc) · 667 Bytes
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
FROM golang:latest
MAINTAINER 'Josh Hawn <jlhawn@docker.com> (github:jlhawn)'
RUN apt-get update && \
apt-get install -y zip
ENV PROJ_DIR /go/src/github.com/l0rd/docker-unit
ENV PLATFORMS ' \
darwin/386 \
darwin/amd64 \
freebsd/386 \
freebsd/amd64 \
freebsd/arm \
linux/386 \
linux/amd64 \
linux/arm \
windows/386 \
windows/amd64 \
'
RUN sh -c 'mkdir -p $PROJ_DIR'
COPY . $PROJ_DIR
RUN sh -c 'cp "$PROJ_DIR/scripts/make_binaries.sh" /usr/local/bin/make_binaries.sh'
RUN sh -c 'cp "$PROJ_DIR/scripts/make_tests.sh" /usr/local/bin/make_tests.sh'
ENTRYPOINT ["/usr/local/bin/make_binaries.sh"]
CMD ["/bundles"]