2024-02-01 15:09:54 -08:00
|
|
|
FROM alpine:latest
|
2024-01-26 01:14:30 -08:00
|
|
|
|
|
|
|
|
# Install dependencies
|
2024-02-01 15:09:54 -08:00
|
|
|
RUN apk update && apk add git build-base linux-headers python3 python3-dev py3-pip chromium chromium-chromedriver
|
2024-01-26 01:14:30 -08:00
|
|
|
|
|
|
|
|
# Set working directory
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Install pip dependencies
|
|
|
|
|
COPY requirements.txt .
|
2024-02-01 15:16:33 -08:00
|
|
|
RUN python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
|
2024-01-26 01:14:30 -08:00
|
|
|
|
|
|
|
|
# Copy source code
|
|
|
|
|
COPY . .
|
|
|
|
|
|
2024-01-26 02:30:32 -08:00
|
|
|
# Mount working directory
|
|
|
|
|
VOLUME ./run
|
|
|
|
|
|
2024-01-26 01:14:30 -08:00
|
|
|
# Run the bot
|
2024-02-01 15:09:54 -08:00
|
|
|
CMD ["python3", "src/main.py"]
|