Files
NijiHolo_EN_ID_Bot/Dockerfile
T

25 lines
551 B
Docker
Raw Normal View History

2024-02-01 15:09:54 -08:00
FROM alpine:latest
2024-01-26 01:14:30 -08:00
# Install dependencies
2024-02-04 10:58:41 -08:00
RUN apk update && apk add font-noto-cjk git build-base linux-headers python3 python3-dev py3-pip py3-opencv chromium chromium-chromedriver
2024-01-26 01:14:30 -08:00
# Set working directory
WORKDIR /app
2024-02-01 17:37:51 -08:00
# Create virtual environment
# RUN python3 -m venv .venv
# ENV PATH="/app/.venv/bin:$PATH"
2024-01-26 01:14:30 -08:00
# Install pip dependencies
COPY requirements.txt .
2024-02-01 17:37:51 -08:00
RUN pip3 install --break-system-packages -r requirements.txt
2024-01-26 01:14:30 -08:00
# Copy source code
COPY . .
2024-04-21 16:03:32 -07:00
# Mount persistent working directory
2024-01-26 02:30:32 -08:00
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"]