-
Notifications
You must be signed in to change notification settings - Fork 178
/
Dockerfile
30 lines (23 loc) · 976 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
FROM ubuntu as base
ENV TZ=Etc/UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install --yes python3 pip pkg-config libsystemd-dev git
FROM base as builder
COPY scripts scripts
COPY LICENSE LICENSE
COPY shared-data shared-data
COPY server-utils/setup.py server-utils/setup.py
COPY server-utils/server_utils server-utils/server_utils
COPY api/MANIFEST.in api/MANIFEST.in
COPY api/setup.py api/setup.py
COPY api/pypi-readme.rst api/pypi-readme.rst
COPY api/src/opentrons api/src/opentrons
COPY robot-server/setup.py robot-server/setup.py
COPY robot-server/robot_server robot-server/robot_server
RUN cd shared-data/python && python3 setup.py bdist_wheel -d /dist/
RUN cd server-utils && python3 setup.py bdist_wheel -d /dist/
RUN cd api && python3 setup.py bdist_wheel -d /dist/
RUN cd robot-server && python3 setup.py bdist_wheel -d /dist/
FROM base
COPY --from=builder /dist /dist
RUN pip install /dist/*