forked from Opentrons/opentrons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 694 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 694 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
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 server-utils
COPY api api
COPY robot-server robot-server
RUN cd shared-data && python3 -m build --outdir=/dist/ --wheel .
RUN cd server-utils && python3 -m build --outdir=/dist/ --wheel .
RUN cd api && python3 -m build --outdir=/dist/ --wheel .
RUN cd robot-server && python3 -m build --outdir=/dist/ --wheel .
FROM base
COPY --from=builder /dist /dist
RUN pip install /dist/*