Skip to content

Commit

Permalink
fix: build our package in a way that doesn't copy over unnecessary files
Browse files Browse the repository at this point in the history
setuptools_scm has an issue where it forces all SCM-tracked files into
the tarball. building as root somehow avoids that issue.
  • Loading branch information
angela-tran committed Dec 11, 2023
1 parent 49020f3 commit 0cf02bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN python -m pip install --upgrade pip

COPY . .
RUN git config --global --add safe.directory /build

# build as root user so unnecessary files are not copied into tarball
USER root
RUN pip install build && python -m build

FROM ghcr.io/cal-itp/docker-python-web:main as appcontainer
Expand Down

0 comments on commit 0cf02bb

Please sign in to comment.