-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile.dev
More file actions
25 lines (19 loc) · 808 Bytes
/
Dockerfile.dev
File metadata and controls
25 lines (19 loc) · 808 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
# ─── cli-jaw Docker image (로컬 소스) ────────────
FROM node:22-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 make g++ chromium curl \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -r jaw && useradd -r -g jaw -m jaw
WORKDIR /app
COPY package*.json ./
RUN npm ci --ignore-scripts && npm rebuild better-sqlite3
COPY . .
RUN npm run build && npm run build:frontend
ENV CLI_JAW_HOME=/home/jaw/.cli-jaw
ENV PORT=3457
RUN node dist/bin/postinstall.js && chown -R jaw:jaw /home/jaw/.cli-jaw
USER jaw
EXPOSE 3457
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD node -e "fetch('http://localhost:3457/api/health').then(r=>{if(!r.ok)throw 1})" || exit 1
ENTRYPOINT ["node", "--dns-result-order=ipv4first", "dist/server.js"]