-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·23 lines (16 loc) · 940 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# WARNING! I am on a low-bandwidth internet connection and have not been able to build this
# image myself yet. Almost certainly it won't work, but the ideas are right
# Use as are base image a linux with the java8 runtime already installed
FROM openjdk:8
# Add our application logic and ALL our dependencies into the docker image
ADD build/distributions/skeleton-master.tar /
# The .tar file that gradle builds includes everything in src/main, but we also need
# our appconfig.yml (which is not part of the .tar that gradle builds) so we must
# add it explicitly
ADD appconfig.yml /skeleton/
# Convenience if we ever want to log into the image and snoop around
WORKDIR /skeleton
# The server is runs on 8080 inside the running container, so we need to expose that port
EXPOSE 8080
# When a new container is created, the server program should be run.
ENTRYPOINT ["/skeleton-master/bin/skeleton-master", "server", "appconfig.yml"]