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
RUN apk add --no-cache --update python py-pip py-lxml && \
pip install -r requirements.txt
ADD ./docker /walle-react
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
# if [ ! -d "docker" ]; then
# mkdir docker
# fi
# git submodule init
# git submodule update
# npm install
# npm run build
# cp -r build freespeech_walle ./*.py requirements.txt Dockerfile docker/
cd docker/
if [ ! -d "docker" ]; then
mkdir docker
fi
git submodule init
git submodule update
npm install
npm run build
cp -r build freespeech_walle ./*.py requirements.txt docker/
docker build -t walle-react .