-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (28 loc) · 1008 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM openjdk:7-jre-alpine
ARG BUILD_DATE
ARG VCS_REF
ARG VCS_URL
ARG VERSION
MAINTAINER Dmitry Korotych, dkorotych at gmail dot com
LABEL \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.license="Apache-2.0" \
org.label-schema.vendor="Dmitry Korotych, dkorotych at gmail dot com" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
ENV LAZYBONES_VERSION 0.8.2
ENV APPLICATION_DIR /app
RUN apk add --no-cache openssl bash \
&& cd /usr/local \
&& wget https://dl.bintray.com/pledbrook/lazybones-templates/lazybones-${LAZYBONES_VERSION}.zip \
&& unzip lazybones-${LAZYBONES_VERSION}.zip \
&& ln -s lazybones-${LAZYBONES_VERSION} lazybones \
&& rm lazybones-${LAZYBONES_VERSION}.zip \
&& apk del openssl
ENV PATH /usr/local/lazybones/bin:${PATH}
WORKDIR ${APPLICATION_DIR}
VOLUME ${APPLICATION_DIR}
ENTRYPOINT ["/usr/local/lazybones/bin/lazybones"]
CMD ["help"]