-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 707 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 707 Bytes
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
34
35
36
# Use Node.js 20 LTS
FROM node:20-alpine
LABEL org.opencontainers.image.source https://github.com/0xReisearch/academic-mcp
# Install system dependencies required for PDF processing
RUN apk add --no-cache \
poppler-utils \
ghostscript \
imagemagick \
graphicsmagick
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install all dependencies (including dev dependencies for build)
RUN npm ci
# Copy source code
COPY src/ ./src/
COPY tsconfig.json ./
# Build the application
RUN npm run build
# Remove dev dependencies after build
RUN npm prune --production
# Expose port for Express SSE server
EXPOSE 8080
# Start the application
CMD ["npm", "start"]