Skip to content

Commit

Permalink
Merge pull request #14 from dotronglong/issue/13
Browse files Browse the repository at this point in the history
Support Docker
  • Loading branch information
Do Trong Long authored Jan 14, 2019
2 parents e438e6e + e8b2890 commit b4226a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**
17 changes: 17 additions & 0 deletions Dockerfile
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" ]

0 comments on commit b4226a9

Please sign in to comment.