-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (35 loc) · 1.46 KB
/
Copy pathDockerfile
File metadata and controls
47 lines (35 loc) · 1.46 KB
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
FROM ubuntu:14.04
MAINTAINER Powell Quiring <[email protected]>
ADD control.sh /play/control.sh
WORKDIR /play
ENTRYPOINT ["/play/control.sh"]
# Expose Code volume and play ports 9000 default 9999 debug 8888 activator ui
EXPOSE 9000
EXPOSE 9999
EXPOSE 8888
# change this default version if needed:
ENV ACTIVATOR_VERSION 1.3.2
#################################################################################################
# Children of this image (FROM thisImage) use this as follows:
#FROM andgrit/playbase
#ENV ACTIVATOR_VERSION 1.3.3
# doubtful you will need to change this version
#ENV PLAY_REPOSITORY https://github.com/YOURREPOSITORY
# specify the git repo that holds your play code
#RUN /play/control.sh dist
# build your layer. The build script supports one of the parameters:
# dist - create a play distribution docker image. Make it small as possible
# test - run the tests
#
# this can take a long time to prepare a play environment, compile your code, and clean up.
# more docs are in the control.sh script
# Then docker run, maybe: docker run -d -p 80:9000 yourimage
# or pass the parameters: "-- whatever" typically something like: docker run -it yourimage -- bash
# Notes:
## do not change the WORKDIR it will contain your play application
#################################################################################################
# example:
#
#FROM andgrit/playbase
#ENV PLAY_REPOSITORY https://github.com/andgrit/estimate.git
#RUN /play/control.sh dist