forked from internetarchive/arch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (24 loc) · 1.2 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
# Ubuntu (Focal) based image
FROM ubuntu:20.04
# Metadata
LABEL maintainer="Nick Ruest <[email protected]>, Helge Holzmann <[email protected]>"
LABEL description="Docker image for ARCH development"
LABEL website="https://archive-it.org"
EXPOSE 12341
EXPOSE 54040
VOLUME /app
VOLUME /data
# noninteractive + --no-install-recommends to avoid user input for package `tzdata`, which is a dependency of the following
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update && apt-get -qq install -y --no-install-recommends curl gnupg openjdk-11-jdk maven git wget unzip
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
WORKDIR /tmp
RUN wget -q http://scala-lang.org/files/archive/scala-2.12.8.deb && dpkg -i scala-2.12.8.deb
RUN echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
RUN curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | apt-key add
RUN apt-get -qq update && apt-get -qq install -y sbt=1.3.8
COPY ./ /app/
WORKDIR /app
RUN chmod +x /app/src/main/bash/sendmail && ln -s /app/src/main/bash/sendmail /usr/sbin/sendmail
RUN ["sbt", "dev/clean", "dev/update", "dev/compile"]
ENTRYPOINT ["sbt"]
CMD ["dev/run"]