Skip to content

Commit

Permalink
fix(docker): copy static dir from build stage
Browse files Browse the repository at this point in the history
ensure it exists (else assumed to be created by CI)
  • Loading branch information
thekaveman committed Jan 5, 2024
1 parent 674a4ea commit da1bee9
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 @@ -8,6 +8,8 @@ RUN python -m pip install --upgrade pip
COPY . .
RUN git config --global --add safe.directory /build

RUN mkdir -p static

# build as root user so unnecessary files are not copied into tarball
USER root
RUN pip install build && python -m build
Expand All @@ -19,6 +21,7 @@ WORKDIR /home/calitp/app
ENV FLASK_APP=eligibility_server.app:app

COPY --from=build_wheel /build/dist /build/dist
COPY --from=build_wheel /build/static static

# copy source files
COPY bin bin
Expand Down

0 comments on commit da1bee9

Please sign in to comment.