forked from askmike/gekko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
36 additions
and
13 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,2 @@ | ||
HOST=localhost | ||
PORT=3000 |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
FROM node:6.3 | ||
|
||
ENV HOST localhost | ||
ENV PORT 3000 | ||
|
||
# Create app directory | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
@@ -11,9 +14,7 @@ RUN npm install [email protected] [email protected] pg | |
|
||
# Bundle app source | ||
COPY . /usr/src/app | ||
RUN sed -i 's/127.0.0.1/0.0.0.0/g' web/vue/UIconfig.js | ||
RUN sed -i 's/localhost/0.0.0.0/g' web/vue/UIconfig.js | ||
|
||
EXPOSE 3000 | ||
RUN chmod +x /usr/src/app/docker-entrypoint.sh | ||
|
||
CMD [ "npm", "start" ] | ||
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"] | ||
CMD [ "npm", "start" ] |
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
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
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,6 @@ | ||
#!/bin/bash | ||
|
||
sed -i 's/127.0.0.1/0.0.0.0/g' /usr/src/app/web/vue/UIconfig.js | ||
sed -i 's/localhost/'${HOST}'/g' /usr/src/app/web/vue/UIconfig.js | ||
sed -i 's/3000/'${PORT}'/g' /usr/src/app/web/vue/UIconfig.js | ||
exec "$@" |