-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile.cloud
More file actions
43 lines (29 loc) · 1.08 KB
/
Copy pathDockerfile.cloud
File metadata and controls
43 lines (29 loc) · 1.08 KB
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
37
38
39
40
41
42
43
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --ignore-scripts
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build
FROM node:20-alpine
# Patch OpenSSL for CVE-2026-34182 (requires >= 3.5.7-r0)
RUN apk update && apk upgrade --no-cache openssl libcrypto3 libssl3
LABEL org.opencontainers.image.title="Olostep MCP Server"
LABEL org.opencontainers.image.description="MCP server for web scraping, search, and content extraction powered by Olostep API"
LABEL org.opencontainers.image.url="https://github.com/olostep/olostep-mcp-server"
LABEL org.opencontainers.image.source="https://github.com/olostep/olostep-mcp-server"
LABEL org.opencontainers.image.vendor="Olostep"
LABEL org.opencontainers.image.licenses="ISC"
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev --ignore-scripts
COPY --from=builder /app/build ./build
ENV NODE_ENV=production
ENV TRANSPORT=http
ENV PORT=3000
RUN addgroup -g 1001 -S mcpuser && \
adduser -S mcpuser -u 1001 -G mcpuser && \
chown -R mcpuser:mcpuser /app
USER mcpuser
EXPOSE 3000
CMD ["node", "build/index.js"]