copying docker to image and building

master
Malar Kannan 2017-08-01 16:54:55 +05:30
parent 4416dfc201
commit b5c42cd95d
2 changed files with 14 additions and 12 deletions

View File

@ -1,6 +1,9 @@
FROM alpine:3.6 FROM alpine:3.6
RUN apk add --no-cache --update python py-pip py-lxml && \ ADD ./docker /walle-react
pip install -r requirements.txt WORKDIR /walle-react
cmd 'gunicorn --bind 0.0.0.0:3000 wsgi' RUN apk add --no-cache --update python py-pip py-lxml \
&& pip install -r requirements.txt
CMD gunicorn --bind 0.0.0.0:$PORT wsgi

View File

@ -1,12 +1,11 @@
#!/bin/bash #!/bin/bash
# if [ ! -d "docker" ]; then if [ ! -d "docker" ]; then
# mkdir docker mkdir docker
# fi fi
# git submodule init git submodule init
# git submodule update git submodule update
# npm install npm install
# npm run build npm run build
# cp -r build freespeech_walle ./*.py requirements.txt Dockerfile docker/ cp -r build freespeech_walle ./*.py requirements.txt docker/
cd docker/
docker build -t walle-react . docker build -t walle-react .