-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathDockerfile
26 lines (18 loc) · 1.01 KB
/
Dockerfile
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
# 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.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/
ADD gc_api_file.json /skeleton/gc_api_file.json
ENV GOOGLE_APPLICATION_CREDENTIALS=/skeleton/gc_api_file.json
# 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/bin/skeleton", "server", "appconfig.yml"]