-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
24 lines (15 loc) · 630 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
FROM maven:3.3.3-jdk-8 as build
MAINTAINER Antonis Troumpoukis <[email protected]>
WORKDIR build
RUN git clone https://github.com/semagrow/sevod-scraper.git \
&& cd sevod-scraper \
&& mvn clean package \
&& cd assembly/target \
&& tar xzvf sevod-scraper-*-SNAPSHOT-dist.tar.gz
FROM openjdk:8-jre-slim-buster
COPY --from=build /build/sevod-scraper/assembly/target/bin /sevod-scraper/bin
COPY --from=build /build/sevod-scraper/assembly/target/lib /sevod-scraper/lib
WORKDIR /sevod-scraper/bin
COPY run-sevod-scraper.sh ./run-sevod-scraper.sh
RUN chmod +x ./run-sevod-scraper.sh
ENTRYPOINT ./run-sevod-scraper.sh