mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
@@ -1,7 +1,7 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN mkdir -p /usr/src/
|
RUN mkdir -p /usr/src/
|
||||||
|
#Install Software
|
||||||
RUN apk add --update nodejs npm git
|
RUN apk add --update nodejs npm git
|
||||||
|
|
||||||
RUN cd /usr/src && git clone https://github.com/orangecoding/fredy.git
|
RUN cd /usr/src && git clone https://github.com/orangecoding/fredy.git
|
||||||
@@ -15,5 +15,5 @@ WORKDIR /usr/src/fredy
|
|||||||
EXPOSE 9876
|
EXPOSE 9876
|
||||||
|
|
||||||
VOLUME [ "/conf" ]
|
VOLUME [ "/conf" ]
|
||||||
|
# --no-daemon is required for keeping Container alive
|
||||||
CMD node index.js --no-daemon
|
CMD node index.js --no-daemon
|
||||||
22
README.md
22
README.md
@@ -1,6 +1,3 @@
|
|||||||
#Trying to add Docker Image
|
|
||||||
|
|
||||||
|
|
||||||
# Fredy
|
# Fredy
|
||||||
|
|
||||||
[F]ind [R]eal [E]states [D]amn Eas[y] :heart:
|
[F]ind [R]eal [E]states [D]amn Eas[y] :heart:
|
||||||
@@ -148,3 +145,22 @@ You can call the stats http endpoint like this:
|
|||||||
curl http://localhost:9876
|
curl http://localhost:9876
|
||||||
```
|
```
|
||||||
The ports is depending on what you've configured in your config file.
|
The ports is depending on what you've configured in your config file.
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
|
||||||
|
Use the Dockerfile in this Repo to build a Image
|
||||||
|
|
||||||
|
Ex: docker build -t fredy/fredy /path/to/your/Dockerfile
|
||||||
|
|
||||||
|
## Create & Run a Container
|
||||||
|
|
||||||
|
Put your config.json to /path/to/your/conf/
|
||||||
|
|
||||||
|
Ex: docker create --name fredy -v /path/to/your/conf/:/conf -p 9876:9876 fredy/fredy
|
||||||
|
|
||||||
|
## Logs
|
||||||
|
|
||||||
|
You can browse Logs with
|
||||||
|
|
||||||
|
docker logs fredy -f
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user