File size: 697 Bytes
b16049c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM node:20-slim

# Install LaTeX distribution
# We use texlive-xetex, biber, and texlive-lang-spanish for APA 7 and XeLaTeX support
RUN apt-get update && apt-get install -y \
    texlive-xetex \
    texlive-bibtex-extra \
    biber \
    texlive-lang-spanish \
    fontconfig \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Install Node dependencies
COPY package*.json ./
RUN npm install

# Copy application source code
COPY . .

# Build the TypeScript MCP Server
RUN npm run build

# Create directory for compiling PDFs with wide permissions
RUN mkdir -p temp_projects && chmod 777 temp_projects

# Start the application on Cloud Port 7860
ENV PORT=7860
EXPOSE 7860

CMD ["npm", "start"]