-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 732 Bytes
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 732 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
40
# Crawler Dockerfile
FROM ubuntu:22.04
# Install dependencies
RUN apt-get update && apt-get install -y \
cmake \
build-essential \
gcc \
g++ \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy crawler source
COPY crawler/ ./crawler/
COPY data_pipeline/ ./data_pipeline/
# Build crawler
RUN cd crawler && \
mkdir -p build && \
cd build && \
cmake .. && \
make
# Install Python dependencies for data processing
RUN pip3 install pandas sqlite3 json
# Create output directory
RUN mkdir -p /app/data
# Copy scripts
COPY crawler/scripts/ ./scripts/
# Make scripts executable
RUN chmod +x ./scripts/*.sh
# Default command
CMD ["./scripts/crawl_and_process.sh"]