We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8e486 commit f79b6deCopy full SHA for f79b6de
Dockerfile
@@ -1,21 +1,18 @@
1
-FROM java
+FROM openjdk:alpine
2
3
LABEL maintainer "Jeff Sippel <[email protected]>"
4
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
+RUN apk update && \
+ apk upgrade && \
+ apk add --no-cache ruby ruby-nokogiri ruby-json
12
13
COPY scalastyle_config.xml /usr/src/app/
14
COPY scalastyle_2.11-0.6.0-batch.jar /usr/src/app/
15
16
COPY . /usr/src/app
17
+WORKDIR /usr/src/app
+
18
VOLUME /code
19
-WORKDIR /code
20
21
-CMD ["/usr/src/app/bin/scalastyle"]
+CMD ./bin/scalastyle
0 commit comments