Created
March 14, 2025 12:34
-
-
Save spinningcat/9db62c718d8828cdc64c964543e64e28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM dhcf:debian AS markdownworker | |
WORKDIR /worker/markdown | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
python3-venv bash \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Copy the requirements file into the container | |
COPY ./asset/worker-markdown/requirements.txt . | |
# Create and activate a virtual environment | |
#ENV PATH="/opt/venv/bin:$PATH" | |
COPY ./asset/worker-markdown/. . | |
RUN python3 -m venv /opt/venv | |
RUN ls -l | |
RUN bash -c "source bin/activate" | |
# Install Python dependencies | |
RUN pip3 install --no-cache-dir -r requirements.txt | |
# Copy the rest of the application code | |
RUN mkdir -p new | |
RUN mkdir -p unsupported | |
RUN mkdir -p done | |
RUN chmod +x /worker/markdown/worker-markdown.py | |
# Command to run the application | |
CMD ["python3", "worker-markdown.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment