-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from dotronglong/issue/13
Support Docker
- Loading branch information
Showing
2 changed files
with
18 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 @@ | ||
** |
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,17 @@ | ||
FROM mcr.microsoft.com/java/jre-headless:8u192-zulu-alpine | ||
LABEL maintainer="[email protected]" | ||
|
||
ENV FAKER_VERSION=1.1.3 | ||
ENV FAKER_PORT=3030 | ||
ENV APP_DIR=/app | ||
ENV APP_FILE=${APP_DIR}/faker.jar | ||
ENV MOCK_DIR=${APP_DIR}/mocks | ||
ENV LOG_FILE=${APP_DIR}/faker.log | ||
ENV APP_RELEASE=https://github.com/dotronglong/faker/releases/download/v$FAKER_VERSION/faker.jar | ||
|
||
RUN mkdir -p ${APP_DIR} ${MOCK_DIR} | ||
ADD ${APP_RELEASE} ${APP_FILE} | ||
|
||
EXPOSE 3030 | ||
ENTRYPOINT [ "java" ] | ||
CMD [ "-Dserver.port=${FAKER_PORT}", "-Dfaker.source=${MOCK_DIR}", "-jar", "/app/faker.jar" ] |