forked from boomerang-io/worker.cicd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-java
24 lines (17 loc) · 848 Bytes
/
Dockerfile-java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Get 'yq' from the source
FROM mikefarah/yq:4.6.1 as yq
#Import the base docker image built on top of Alpine
FROM alpine:3.13.5
ADD ./alpine-mirrors /etc/apk/repositories
COPY --from=yq /usr/bin/yq /usr/bin/yq
WORKDIR /opt/bin
#Add Packages
RUN apk add --no-cache bash sed grep curl coreutils nodejs npm ca-certificates make openssh-client git socat skopeo openssl jq && \
curl -fSL "https://github.com/genuinetools/img/releases/download/v0.5.11/img-linux-amd64" -o "/opt/bin/img" && chmod a+x "/opt/bin/img" && \
apk --no-cache add curl-dev wget openjdk8 maven && apk --no-cache add openjdk11 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
WORKDIR /cli
ADD ./package.json ./package-lock.json ./.npmrc ./
ADD ./scripts ./scripts
ADD ./commands ./commands
RUN npm install --production
ENTRYPOINT [ "npm", "start" ]