feat: Add Dockerfile, docker-compose, and Gitea Actions workflow for initial Clawdbot application deployment.
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m5s

This commit is contained in:
2026-01-28 20:57:50 +01:00
commit 0d0ba70560
5 changed files with 136 additions and 0 deletions

33
Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM node:22-bookworm
# Install system dependencies
RUN apt-get update && apt-get install -y \
socat \
git \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
# Set up user
USER node
WORKDIR /home/node/app
# Copy application code
COPY --chown=node:node . .
# Build process
RUN pnpm install --frozen-lockfile
RUN pnpm build
RUN pnpm ui:build
# Fix permissions
USER root
RUN chown -R node:node /home/node/app
USER node
# Default command (can be overridden by docker-compose)
CMD ["node", "dist/index.js"]