forked from alltheplaces/alltheplaces
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 881 Bytes
/
Dockerfile
File metadata and controls
39 lines (30 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.11-bookworm
# install uv to manage python
COPY --from=ghcr.io/astral-sh/uv:0.7.19 /uv /uvx /bin/
# install some dependencies that are useful for the build
RUN apt-get update \
&& apt-get install -qq -y \
jq \
git \
curl \
zip \
&& rm -rf /var/lib/apt/lists/*
# install tippecanoe
ARG TIPPECANOE_VERSION=2.78.0
RUN curl -sL https://github.com/felt/tippecanoe/archive/refs/tags/${TIPPECANOE_VERSION}.tar.gz | tar -xz \
&& cd tippecanoe-${TIPPECANOE_VERSION} \
&& make -j \
&& make install \
&& cd .. \
&& rm -rf tippecanoe-${TIPPECANOE_VERSION}
# install dependencies from uv
COPY pyproject.toml pyproject.toml
COPY uv.lock uv.lock
RUN uv sync --frozen
RUN uv run playwright install-deps \
&& uv run playwright install firefox
RUN uv run camoufox fetch
COPY . .
ARG GIT_COMMIT
ENV GIT_COMMIT=$GIT_COMMIT
CMD ["./ci/run_all_spiders.sh"]