Skip to content

Commit d77fbf3

Browse files
committed
feat(docker): add Dockerfile
1 parent 065d0d8 commit d77fbf3

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

Dockerfile

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
FROM ubuntu:latest
2+
3+
# Update package lists
4+
RUN apt-get update
5+
6+
# Install necessary packages
7+
RUN apt-get install -y \
8+
python3 \
9+
python3-pip \
10+
git \
11+
ffmpeg \
12+
ttf-mscorefonts-installer \
13+
fonts-noto \
14+
fonts-noto-cjk \
15+
fonts-dejavu \
16+
texlive-latex-extra \
17+
pandoc \
18+
wget \
19+
unzip
20+
21+
# Accept the Microsoft fonts license
22+
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
23+
24+
# Install texlive packages
25+
RUN apt-get update && apt-get install -y --no-install-recommends texlive-latex-extra texlive-fonts-recommended texlive-pictures cm-super
26+
27+
# Clean up apt cache
28+
RUN apt-get clean
29+
30+
# Set working directory
31+
WORKDIR /app
32+
33+
# Copy the entire repository
34+
COPY . /app
35+
36+
# Install Python dependencies
37+
RUN pip3 install --no-cache-dir -r requirements.txt
38+
39+
# Download and install fonts (if needed)
40+
# This is an example, adjust as necessary
41+
# RUN wget -q -O /tmp/fonts.zip "https://example.com/path/to/fonts.zip" && \
42+
# unzip /tmp/fonts.zip -d /usr/share/fonts/ && \
43+
# fc-cache -f -v
44+
45+
# Make scripts executable (if needed)
46+
RUN chmod +x /app/scripts/*.py
47+
48+
# Set environment variables (if needed)
49+
# ENV DEEPSEEK_API_KEY=your_deepseek_api_key
50+
# ENV GITHUB_TOKEN=your_github_token
51+
# ENV MISTRAL_API_KEY=your_mistral_api_key
52+
# ENV GEMINI_API_KEY=your_gemini_api_key
53+
# ENV GCP_SA_KEY=your_gcp_sa_key
54+
55+
# Command to run (if needed, adjust as necessary)
56+
# CMD ["python3", "/app/your_script.py"]
57+

0 commit comments

Comments
 (0)