-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 838 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:20.04
MAINTAINER MLPerf MLBox Working Group
# Remove all stopped containers: docker rm $(docker ps -a -q)
# Remove containers like none:none: docker rmi $(docker images | grep none | awk '{print $3}')
RUN apt-get update && \
apt-get install -y --no-install-recommends \
software-properties-common \
python3-dev \
curl && \
rm -rf /var/lib/apt/lists/*
RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py && \
rm get-pip.py
COPY requirements.txt /requirements.txt
RUN pip3 install --no-cache-dir -r /requirements.txt
COPY mnist.py /workspace/mnist.py
COPY mlcube.yaml /mlcube/mlcube.yaml
COPY workspace/data.yaml /mlcube/workspace/data.yaml
COPY workspace/train.yaml /mlcube/workspace/train.yaml
ENTRYPOINT ["python3", "/workspace/mnist.py"]