mirror of https://github.com/dirtbags/moth.git
Update devel server build rules for new layout
This commit is contained in:
parent
4f4cd7a2ad
commit
9963f4181f
|
@ -7,4 +7,4 @@ COPY . /moth/
|
|||
COPY example-puzzles /puzzles/
|
||||
|
||||
WORKDIR /moth/
|
||||
ENTRYPOINT ["python3", "/moth/tools/devel-server.py", "--bind", ":8080", "--puzzles", "/puzzles"]
|
||||
ENTRYPOINT ["python3", "/moth/devel/devel-server.py", "--bind", ":8080", "--puzzles", "/puzzles"]
|
||||
|
|
2
build.sh
2
build.sh
|
@ -6,6 +6,6 @@ version=$(date +%Y%m%d%H%M)
|
|||
|
||||
for img in moth moth-devel; do
|
||||
echo "==== $img"
|
||||
docker build --build-arg http_proxy=$http_proxy --tag dirtbags/$img --tag dirtbags/$img:$version -f Dockerfile.$img .
|
||||
sudo docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy --tag dirtbags/$img --tag dirtbags/$img:$version -f Dockerfile.$img .
|
||||
[ "$1" = "-push" ] && docker push dirtbags/$img:$version && docker push dirtbags/$img
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue