-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
27 lines (23 loc) · 986 Bytes
/
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
## yacy_grid_parser dockerfile
## examples:
# docker build -t yacy_grid_parser .
# docker run -d --rm -p 8500:8500 --name yacy_grid_parser yacy_grid_parser
## Check if the service is running:
# curl http://localhost:8500/yacy/grid/mcp/info/status.json
# build app
FROM eclipse-temurin:8-jdk-focal AS appbuilder
COPY ./ /app
WORKDIR /app
RUN ./gradlew clean shadowDistTar
# build dist
FROM eclipse-temurin:8-jre-focal
LABEL maintainer="Michael Peter Christen <[email protected]>"
ENV DEBIAN_FRONTEND noninteractive
ARG default_branch=master
COPY ./conf /app/conf/
COPY --from=appbuilder /app/build/libs/ ./app/build/libs/
WORKDIR /app
EXPOSE 8500
# for some weird reason the jar file is sometimes not named correctly
RUN if [ -e /app/build/libs/app-0.0.1-SNAPSHOT-all.jar ] ; then mv /app/build/libs/app-0.0.1-SNAPSHOT-all.jar /app/build/libs/yacy_grid_parser-0.0.1-SNAPSHOT-all.jar; fi
CMD ["java", "-Xms320M", "-Xmx4G", "-jar", "/app/build/libs/yacy_grid_parser-0.0.1-SNAPSHOT-all.jar"]