-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a dockerfile and readme documentation
- Loading branch information
1 parent
0759a82
commit d0ed6a4
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# build the epubcheck.jar file | ||
FROM maven:slim as builder | ||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN mvn clean install | ||
|
||
# prepare runner for epubcheck.jar execution | ||
FROM openjdk:slim | ||
|
||
WORKDIR /app | ||
COPY --from=builder /app . | ||
RUN echo '#!/bin/bash\n java -jar /app/target/epubcheck.jar "${@:1}"\n' > entrypoint.sh | ||
RUN chmod +x entrypoint.sh | ||
|
||
ENV DATA_PATH=/data | ||
WORKDIR ${DATA_PATH} | ||
VOLUME ${DATA_PATH} | ||
|
||
ENTRYPOINT [ "/app/entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters