-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
54 lines (43 loc) · 1.01 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Dockerfile for building generic-serial-orchestrator image from Ubuntu 18.04 image
FROM ubuntu:18.04
# Install necessary system packages
RUN apt-get update \
&& apt-get install -y \
python3 \
python3-pip \
autoconf \
automake \
cmake \
curl \
g++ \
git \
graphviz \
libatlas3-base \
libtool \
make \
pkg-config \
sox \
subversion \
unzip \
wget \
zlib1g-dev \
vim \
nano
RUN export PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Make python3 default
RUN ln -s /usr/bin/python3 /usr/bin/python \
&& ln -s /usr/bin/pip3 /usr/bin/pip
# Install necessary Python packages
RUN pip install --upgrade pip \
numpy \
glob2 \
zipfile36
RUN python3 -m pip install grpcio \
grpcio-tools \
googleapis-common-protos
# Copy required files into the container
COPY ./orchestrator_container /orchestartor_container
RUN ls -laR /orchestartor_container/*
WORKDIR /orchestartor_container
CMD [ "python3", "./orchestrator_server.py" ]