diff --git a/.gitignore b/.gitignore index fab52d7877497804092cf72d52bd64dc2f4f1747..e7f8501f2c04d0ddb9a27202b3e91d33c47d9de8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,3 @@ pandoc.template py_env* *.ipynb build -Dockerfile diff --git a/mnist-client/Dockerfile b/mnist-client/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..d7ef76940ce1e7360f178dea26b006d74ba22023 --- /dev/null +++ b/mnist-client/Dockerfile @@ -0,0 +1,9 @@ +FROM mhart/alpine-node:6.11.3 + +RUN mkdir /workspace +WORKDIR /workspace/ +ADD * /workspace/ +RUN apk add --no-cache python py-pip +RUN pip install -r /workspace/requirements.txt +RUN cd /workspace && npm install && mkdir templates && mv index.html templates && mkdir static && mv js static && mv css static +CMD ["python", "main.py"] diff --git a/serve/Dockerfile b/serve/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..7ec79dca05f0d1e0431b39e97fa78cad9165126a --- /dev/null +++ b/serve/Dockerfile @@ -0,0 +1,8 @@ +FROM paddlepaddle/paddle:latest-gpu + +ENV PARAMETER_TAR_PATH=/data/param.tar \ + TOPOLOGY_FILE_PATH=/data/inference_topology.pkl +ADD requirements.txt /root +ADD main.py /root +RUN pip install -r /root/requirements.txt +CMD ["python", "/root/main.py"]