3hstack commited on
Commit
869ce4e
·
verified ·
1 Parent(s): 7ba66d5

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -1,8 +1,11 @@
1
  FROM python:3.11-slim
2
 
3
- # osmnx pulls geopandas/pyproj/rtree; slim needs a C toolchain for a couple of them.
 
 
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  build-essential \
 
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
  WORKDIR /app
 
1
  FROM python:3.11-slim
2
 
3
+ # build-essential: osmnx pulls geopandas/pyproj/rtree that may need a C toolchain.
4
+ # git: Hugging Face injects a `git config` step at the end of every Space build,
5
+ # which fails with "git: not found" on slim unless git is installed here.
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  build-essential \
8
+ git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app