Skip to content

Commit

Permalink
Add Snappy support to Docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Nov 16, 2023
1 parent 7426d68 commit e8d0d48
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
FROM python:3
FROM python:3-slim

# Additional dependencies required to support Snappy compression:
RUN apt-get update && apt-get install -y --no-install-recommends \
libsnappy-dev \
g++ \
git \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/access

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .
RUN python setup.py install
RUN pip install .

CMD crawldb

Expand Down

0 comments on commit e8d0d48

Please sign in to comment.