-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (28 loc) · 969 Bytes
/
Dockerfile
File metadata and controls
39 lines (28 loc) · 969 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
37
38
39
FROM ubuntu:24.04
# Copy dependency list into image
COPY apt-packages.txt /tmp/apt-packages.txt
# Install dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive xargs -a /tmp/apt-packages.txt apt-get install -y && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Node.js 24 using n version manager
RUN npm install -g n && \
n 24 && \
node -v
# Install Bun (system-wide under /usr/local)
ENV BUN_INSTALL=/usr/local
RUN curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.1"
# Create non-root user for running the application
RUN useradd -m -d /app c64bridge
# Set working directory
WORKDIR /app
# Copy package files for dependency installation
COPY --chown=c64bridge:c64bridge package.json package-lock.json ./
# Install dependencies
RUN npm ci --only=production
# Copy the rest of the application
COPY --chown=c64bridge:c64bridge . .
# Switch to non-root user
USER c64bridge
# Start the MCP server
CMD ["npm", "start"]