-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 816 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
FROM openjdk:8-jre-alpine
LABEL maintainer="https://github.com/siedi"
RUN apk add --no-cache curl \
unzip \
jq
RUN mkdir -p /opt && \
URL=$(curl -s https://api.github.com/repos/taniman/profit-trailer/releases | jq -r '.[0].assets[0].browser_download_url') && \
curl -Ls "$URL" > /opt/profittrailer.zip && \
unzip -q /opt/profittrailer.zip -d /opt && \
rm /opt/profittrailer.zip
EXPOSE 8081
ENV SERVER_TIMEZONEOFFSET +00:00
ENV SERVER_SITENAME ProfitTrailer
ENV SERVER_PASSWORD MyVeryOwnPassword
ENV TRADING_LOGHISTORY 8
ENV SPRING_PROFILES_ACTIVE prod
WORKDIR /opt/ProfitTrailer/
COPY application.template /opt/ProfitTrailer/
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["java", "-jar", "ProfitTrailer.jar", "-XX:+UseConcMarkSweepGC", "-Xmx512m", "-Xms512m"]