mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
f547b6d494
This reverts commit 02a2c9cd429b26ff44fabb97d3649e791b9edea4 Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
28 lines
612 B
Docker
28 lines
612 B
Docker
# Dockerfile for git-bridge
|
|
|
|
FROM maven:3-jdk-8
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
RUN mvn clean package \
|
|
# The name of the created jar contains the current version tag.
|
|
# Rename it to a static path that can be used for copying.
|
|
&& find /app/target \
|
|
-name 'writelatex-git-bridge*jar-with-dependencies.jar' \
|
|
-exec mv {} /git-bridge.jar \;
|
|
|
|
FROM openjdk:8-jre
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install --no-install-recommends -y \
|
|
git \
|
|
&& rm -rf \
|
|
/var/lib/apt/lists/*
|
|
|
|
USER www-data
|
|
|
|
ENTRYPOINT ["java", "-jar", "/git-bridge.jar"]
|
|
CMD ["/conf/runtime.json"]
|
|
|
|
COPY --from=0 /git-bridge.jar /
|