forked from nosana-ci/agent-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 641 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (26 loc) · 641 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
# syntax=docker/dockerfile:1
FROM node:23-slim AS base
# Install system dependencies needed for native modules (e.g. better-sqlite3)
RUN apt-get update && apt-get install -y \
python3 \
make \
g++ \
git \
&& rm -rf /var/lib/apt/lists/*
# Disable telemetry
ENV ELIZAOS_TELEMETRY_DISABLED=true
ENV DO_NOT_TRACK=1
WORKDIR /app
# Install pnpm
RUN npm install -g pnpm
# Copy package manifest and install dependencies
COPY package.json ./
RUN pnpm install
# Copy all source files
COPY . .
# Create data directory for SQLite
RUN mkdir -p /app/data
EXPOSE 3000
ENV NODE_ENV=production
ENV SERVER_PORT=3000
CMD ["pnpm", "start"]