Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules
dist
.git
.github
__tests__
coverage
*.tsbuildinfo
.env*
.claude
foundation
CLAUDE.md
.foundation-*
vitest.config.ts
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM node:18-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json* ./
RUN if [ -f package-lock.json ]; then npm ci --include=optional; else npm install --include=optional; fi
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build

FROM node:18-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY package.json package-lock.json* ./
RUN if [ -f package-lock.json ]; then npm ci --omit=dev --include=optional; else npm install --omit=dev --include=optional; fi && npm cache clean --force
COPY --from=builder /app/dist/ ./dist/
RUN mkdir -p /home/node/.relayplane && \
chown -R node:node /home/node/.relayplane
USER node
EXPOSE 4801
ENV RELAYPLANE_PROXY_HOST=0.0.0.0
ENV RELAYPLANE_PROXY_PORT=4801
ENTRYPOINT ["node", "dist/cli.js"]