Skip to content

Commit f79b6de

Browse files
committed
Slim down dockerfile
1 parent aa8e486 commit f79b6de

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Dockerfile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
FROM java
1+
FROM openjdk:alpine
22

33
LABEL maintainer "Jeff Sippel <[email protected]>"
44

5-
RUN apt-get update
6-
RUN apt-get install -y ruby ruby-nokogiri
7-
8-
RUN adduser -u 9000 --disabled-password --quiet --gecos "" app
9-
USER app
10-
11-
WORKDIR /usr/src/app
5+
RUN apk update && \
6+
apk upgrade && \
7+
apk add --no-cache ruby ruby-nokogiri ruby-json
128

139
COPY scalastyle_config.xml /usr/src/app/
1410
COPY scalastyle_2.11-0.6.0-batch.jar /usr/src/app/
1511

1612
COPY . /usr/src/app
1713

14+
WORKDIR /usr/src/app
15+
1816
VOLUME /code
19-
WORKDIR /code
2017

21-
CMD ["/usr/src/app/bin/scalastyle"]
18+
CMD ./bin/scalastyle

0 commit comments

Comments
 (0)