forked from prakhar1989/FoodTrucks
-
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.
re-organized the entire app. finished docker setup for flask-app
- Loading branch information
1 parent
800c867
commit b8b2312
Showing
46 changed files
with
32 additions
and
8 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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
node_modules | ||
venv | ||
.DS_Store | ||
elasticsearch | ||
elasticsearch/dist |
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,8 +1,24 @@ | ||
# our base image | ||
from python:3-onbuild | ||
# start from base | ||
FROM ubuntu:14.04 | ||
MAINTAINER Prakhar Srivastav <[email protected]> | ||
|
||
# expose the port | ||
# install system-wide deps for python and node | ||
RUN apt-get -yqq update | ||
RUN apt-get -yqq install python-pip python-dev | ||
RUN apt-get -yqq install nodejs npm | ||
RUN ln -s /usr/bin/nodejs /usr/bin/node | ||
|
||
# copy our application code | ||
ADD flask-app /opt/flask-app | ||
WORKDIR /opt/flask-app | ||
|
||
# fetch app specific deps | ||
RUN npm install | ||
RUN npm run build | ||
RUN pip install -r requirements.txt | ||
|
||
# expose port | ||
EXPOSE 5000 | ||
|
||
# run the command | ||
# start app | ||
CMD [ "python", "./app.py" ] |
Empty file.
File renamed without changes.
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,4 @@ | ||
elasticsearch==2.2.0 | ||
requests==2.9.1 | ||
urllib3==1.14 | ||
wheel==0.24.0 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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