/ opencodehub / Dockerfile.runner
Swadhin Biswas chore(infra): harden deployment, backups, and production docs · 3/6/2026
16d8399
43 lines · 711 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
40
41
42
43
# CI/CD Runner Dockerfile
FROM docker:24-dind

# Install Node.js and other dependencies
RUN apk add --no-cache \
    nodejs \
    npm \
    git \
    openssh-client \
    curl \
    bash \
    jq \
    python3 \
    py3-pip \
    make \
    gcc \
    g++ \
    libc-dev

# Install common build tools
RUN npm install -g \
    typescript \
    @types/node \
    pnpm \
    yarn

WORKDIR /runner

# Copy runner script
COPY scripts/runner.sh /runner/runner.sh
RUN chmod +x /runner/runner.sh

# Create work directories
RUN mkdir -p /work /cache

# Environment variables
ENV RUNNER_WORK_DIR=/work
ENV RUNNER_CACHE_DIR=/cache
ENV DOCKER_HOST=unix:///var/run/docker.sock

# Entry point
ENTRYPOINT ["/runner/runner.sh"]