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