Skip to content

Commit

Permalink
chore: allow dev dockerfile to build (#14470)
Browse files Browse the repository at this point in the history
There were 2 issues that prevented this dockerfile from building:
1) The base ubuntu image doesn't have git installed. This is required by `./scripts/python_build_utils.py` when normalizing version strings in setup.py
2) robot-server depends on server-utils but that was never copied or installed in the dockerfile
  • Loading branch information
strangemonad authored Feb 12, 2024
1 parent 4c4f491 commit d93fdc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
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
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
Expand All @@ -18,6 +21,7 @@ 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/

Expand Down

0 comments on commit d93fdc7

Please sign in to comment.