Skip to content
Permalink
Browse files

Change dockerfile to alpine to reduce size.

  • Loading branch information...
greboid authored and ShaneMcC committed Jan 10, 2018
1 parent af8e1ab commit af698330a1bfa6737078a173a42ccaea80d2d91f
Showing with 6 additions and 3 deletions.
  1. +6 −3 Dockerfile
@@ -1,4 +1,4 @@
FROM openjdk:8-jdk
FROM openjdk:alpine
MAINTAINER Shane Mc Cormack <dataforce@dataforce.org.uk>

ENV LANG en_US.UTF-8
@@ -9,13 +9,16 @@ ENV JAVA_TOOL_OPTIONS -Dfile.encoding=UTF8
COPY . /tmp/dfbnc/

RUN \
useradd dfbnc && \
mkdir /home/dfbnc && \
addgroup -g 3456 -S dfbnc && \
adduser -S -G dfbnc -u 3456 -s /bin/bash -h /home/dfbnc dfbnc && \
mkdir /var/lib/dfbnc && \
chown -R dfbnc /tmp/dfbnc && \
chown -R dfbnc /home/dfbnc && \
chown -R dfbnc /var/lib/dfbnc

RUN \
apk add --no-cache git

USER dfbnc

RUN \

0 comments on commit af69833

Please sign in to comment.
You can’t perform that action at this time.