-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 824 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 824 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
FROM node:24-alpine AS zimui
WORKDIR /src
COPY zimui /src/zimui
WORKDIR /src/zimui
RUN yarn install --frozen-lockfile
RUN yarn build
FROM python:3.14-bookworm
LABEL org.opencontainers.image.source=https://github.com/openzim/freecodecamp
RUN python -m pip install --no-cache-dir -U \
pip
# Copy code + associated artifacts
COPY LICENSE LICENSE.fcc.md README.md /src/
COPY scraper/pyproject.toml scraper/openzim.toml scraper/tasks.py /src/scraper/
COPY scraper/src /src/scraper/src
# Copy zimui build output
COPY --from=zimui /src/scraper/src/fcc2zim/zimui /src/scraper/src/fcc2zim/zimui
# Install + cleanup
RUN pip install --no-cache-dir /src/scraper \
&& rm -rf /src/scraper
# default output directory
RUN mkdir -p /output
WORKDIR /output
ENV FCC_BUILD=/tmp
ENV FCC_OUTPUT=/output
CMD ["fcc2zim", "--help"]