forked from archivesspace/archivesspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (32 loc) · 1.13 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
39
FROM openjdk:8-jre
LABEL maintainer="ArchivesSpaceHome@lyrasis.org"
ENV ARCHIVESSPACE_LOGS=/dev/null \
LANG=C.UTF-8
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
git \
mysql-client \
sendmail \
wget \
unzip && \
rm -rf /var/lib/apt/lists/*
COPY . /source
RUN cd /source && \
export ARCHIVESSPACE_VERSION=`git symbolic-ref -q --short HEAD || git describe --tags --match v*` && \
./scripts/build_release $ARCHIVESSPACE_VERSION && \
mv ./*.zip / && \
rm -rf /source && \
cd / && \
unzip /*.zip -d / && \
rm /*.zip && \
rm -rf /archivesspace/plugins/* && \
chmod 755 /archivesspace/archivesspace.sh && \
wget http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.39/mysql-connector-java-5.1.39.jar && \
cp /mysql-connector-java-5.1.39.jar /archivesspace/lib/
# FINALIZE SETUP
ADD docker-startup.sh /startup.sh
RUN chmod u+x /*.sh
EXPOSE 8080 8081 8089 8090 8092
HEALTHCHECK --interval=1m --timeout=5s --start-period=5m --retries=2 \
CMD curl -f http://localhost:8089/ || exit 1
CMD ["/startup.sh"]