Skip to content

Commit

Permalink
Fix image to report library_version correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Feb 1, 2023
1 parent f0ac3e8 commit 1b0f229
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ RUN npm install && npm run build
# We cannot upgrade to Python 3.11 until numba supports it.
# The `sparse` library relies on numba.
FROM python:3.10-slim as builder

# We need git at build time in order for versioneer to work, which in turn is
# needed for the server to correctly report the library_version in the /api/v1/
# route.
RUN apt-get -y update && apt-get install -y git

WORKDIR /code

# Ensure logs and error messages do not get stuck in a buffer.
Expand Down

0 comments on commit 1b0f229

Please sign in to comment.