feat: Dockerfile
This commit is contained in:
parent
fbbb5b129a
commit
e71fd62bf3
1 changed files with 27 additions and 0 deletions
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
#The MIT License (MIT)
|
||||
#Copyright 2020-2023 Anton Aftakhov
|
||||
|
||||
FROM openjdk:8-jre-alpine
|
||||
|
||||
ARG RELEASE=2.27.0
|
||||
ARG ALLURE_REPO=https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline
|
||||
|
||||
RUN echo "$RELEASE" && \
|
||||
apk update && \
|
||||
apk add --no-cache bash wget unzip && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN wget --no-verbose -O /tmp/allure-"$RELEASE".tgz "$ALLURE_REPO"/"$RELEASE"/allure-commandline-"$RELEASE".tgz && \
|
||||
tar -xf /tmp/allure-"$RELEASE".tgz && \
|
||||
rm -rf /tmp/* && \
|
||||
chmod -R +x /allure-"$RELEASE"/bin
|
||||
|
||||
ENV ROOT=/app \
|
||||
PATH=$PATH:/allure-$RELEASE/bin
|
||||
|
||||
RUN mkdir -p "$ROOT"
|
||||
|
||||
WORKDIR $ROOT
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
Loading…
Add table
Add a link
Reference in a new issue