copying docker to image and building
parent
4416dfc201
commit
b5c42cd95d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 .
|
||||
|
|
|
|||
Loading…
Reference in New Issue