Skip to content

Commit

Permalink
chore(docker): Add Dockerfiles. (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Duftler committed Apr 2, 2018
1 parent 3e6d82f commit 0260b6e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM openjdk:8

MAINTAINER delivery-engineering@netflix.com

COPY . workdir/

WORKDIR workdir

RUN GRADLE_USER_HOME=cache ./gradlew buildDeb -x test && \
dpkg -i ./kayenta-web/build/distributions/*.deb && \
cd .. && \
rm -rf workdir

CMD ["/opt/kayenta/bin/kayenta"]
9 changes: 9 additions & 0 deletions Dockerfile.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM openjdk:8-jre-alpine

MAINTAINER delivery-engineering@netflix.com

COPY ./kayenta-web/build/install/kayenta /opt/kayenta

RUN apk --nocache add --update bash

CMD ["/opt/kayenta/bin/kayenta"]

0 comments on commit 0260b6e

Please sign in to comment.