mirror of
https://github.com/newnius/YAO-Dockerfiles.git
synced 2025-12-16 02:26:43 +00:00
add files
This commit is contained in:
21
yao-optimizer/dev/Dockerfile
Normal file
21
yao-optimizer/dev/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM tensorflow/tensorflow:1.14.0-gpu
|
||||
|
||||
MAINTAINER Newnius <newnius.cn@gmail.com>
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python3 python3-pip && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y git vim httpie && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip3 install pandas sklearn tensorflow-gpu==1.14
|
||||
|
||||
ADD bootstrap.sh /etc/bootstrap.sh
|
||||
|
||||
RUN git clone https://code.newnius.com/newnius/yao-optimizer.git /root/yao-optimizer/
|
||||
|
||||
WORKDIR /root/yao-optimizer
|
||||
|
||||
CMD ["/etc/bootstrap.sh"]
|
||||
3
yao-optimizer/dev/bootstrap.sh
Executable file
3
yao-optimizer/dev/bootstrap.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
python3 /root/serve.py
|
||||
Reference in New Issue
Block a user