-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (28 loc) · 1.35 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
27
28
29
30
31
32
33
34
35
36
37
38
#
# Paleobiology Database - Main API image
#
# The image 'paleomacro_pbapi_preload' is built from the file 'Dockerfile-preload'
# in this directory. You can pull the latest version of that image from the remote
# container repository associated with this project using the command 'pbdb pull api'.
# Alternatively, you can build it locally using the command 'pbdb build api preload'.
# See the file Dockerfile-preload for more information.
#
# Once you have the preload image, you can build the Main API container image using
# the command 'pbdb build api'.
FROM paleomacro_pbapi_preload
EXPOSE 3000 3003 3999
WORKDIR /var/paleomacro/pbapi/
# To build this container with the proper timezone setting, use --build-arg TZ=xxx
# where xxx specifies the timezone in which the server is located, for example
# "America/Chicago". The 'pbdb build' command will do this automatically. Without
# any argument the timezone will default to UTC, with no local time available.
ARG TZ=Etc/UTC
RUN echo $TZ > /etc/timezone && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
CMD ["perl", "bin/data_service.pl"]
COPY pbapi /var/paleomacro/pbapi/
LABEL maintainer="[email protected]"
LABEL version="1.0"
LABEL description="Paleobiology Database Main API"
LABEL buildcheck="bin/web_app.pl GET /data1.2/ | head -20"