-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dowideit, Sven (O&A, St. Lucia) <[email protected]>
- Loading branch information
Dowideit, Sven (O&A, St. Lucia)
committed
Aug 10, 2018
1 parent
de0a77b
commit c812d46
Showing
3 changed files
with
31 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,14 @@ | ||
FROM node:alpine | ||
|
||
RUN apk --no-cache add jq | ||
|
||
WORKDIR /opt/Cronicle | ||
|
||
COPY . /opt/Cronicle/ | ||
RUN npm install | ||
RUN node bin/build.js dist | ||
|
||
CMD ["/opt/Cronicle/bin/control.sh", "setup_and_start"] | ||
|
||
EXPOSE 3012 | ||
VOLUME ["/opt/Cronicle/logs", "/opt/Cronicle/data"] |
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,10 @@ | ||
|
||
IMAGE=cronicle | ||
|
||
run: build | ||
docker run --rm -it \ | ||
-p 3012:3012 \ | ||
$(IMAGE) | ||
|
||
build: | ||
docker build -t $(IMAGE) . |
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