-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (28 loc) · 853 Bytes
/
Dockerfile
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
28
29
30
31
32
33
34
35
36
37
FROM nvidia/cuda:10.2-cudnn7-runtime-ubuntu18.04
LABEL maintainer="Yu-Lun Chiang" \
email="[email protected]" \
version="v0.1.0"
ENV PYTHONIOENCODING UTF-8
# install python 3.6 and 3.7 and pip
RUN apt-get update \
&& apt-get install -y python3.7-dev \
&& apt-get install -y python3-pip \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip
# Install requirements and prerequisite
RUN apt-get install -y --assume-yes --no-install-recommends \
build-essential &&\
rm -rf /var/lib/apt/lists/*
# copy require
COPY ./requirements.txt ./
# Install required packages
RUN pip install \
--no-cache-dir \
--requirement ./requirements.txt
# RUN mkdir -p /labrador
# COPY ./src /labrador
# WORKDIR /labrador
WORKDIR /workspace
# EXPOSE 8080
# CMD /labrador/run.sh