Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 752 Bytes
FROM openjdk:8-jdk
RUN apt-get update && apt-get install -y --no-install-recommends gosu && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /fossildb
WORKDIR /fossildb
COPY target/scala-2.12/fossildb.jar .
COPY fossildb .
RUN groupadd -r fossildb \
&& useradd -r -g fossildb fossildb \
&& ln -s /fossildb/fossildb /usr/local/bin \
&& chmod 777 . \
&& chown -R fossildb .
RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
chmod +x /bin/grpc_health_probe
EXPOSE 7155
HEALTHCHECK \
--interval=2s --timeout=5s --retries=30 \
CMD /bin/grpc_health_probe -addr=:7155
CMD [ "fossildb" ]
You can’t perform that action at this time.