Skip to content

Instantly share code, notes, and snippets.

@jgh-

jgh-/Dockerfile Secret

Created January 7, 2018 21:00
Show Gist options
  • Save jgh-/9fc46bdfc1bf8413990573ee04d6af10 to your computer and use it in GitHub Desktop.
Save jgh-/9fc46bdfc1bf8413990573ee04d6af10 to your computer and use it in GitHub Desktop.
FROM openjdk:9-jre
LABEL maintainer="hello@unpause.live"
RUN groupadd -g 999 appuser && \
useradd -r -u 999 -g appuser appuser
USER appuser
ADD config/hunting/prod.clj /etc/hunting.clj
ADD services/location/target/hunting.loc-1.0.0-standalone.jar /opt/hunting/hunting.loc.jar
ADD services/rules/target/hunting.rules-1.0.0-standalone.jar /opt/hunting/hunting.rules.jar
EXPOSE 4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment