-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
32 lines (24 loc) · 1.72 KB
/
Dockerfile.dev
File metadata and controls
32 lines (24 loc) · 1.72 KB
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
FROM node:24.14.1-bookworm-slim AS node
FROM golang:1.26.1-bookworm
# ── Node.js 24.14.1 (copied from official multi-arch image) ─────────────────────
COPY --from=node /usr/local/bin/node /usr/local/bin/node
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
&& ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx
# ── System deps ──────────────────────────────────────────────────────────────────
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl git make xz-utils \
&& rm -rf /var/lib/apt/lists/*
# ── golangci-lint ────────────────────────────────────────────────────────────────
ARG GOLANGCI_LINT_VERSION=v1.57.2
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
| sh -s -- -b "$(go env GOPATH)/bin" "${GOLANGCI_LINT_VERSION}"
# ── Claude Code ─────────────────────────────────────────────────────────────────
RUN curl -fsSL https://claude.ai/install.sh | bash \
&& cp /root/.local/bin/claude /usr/local/bin/claude
# Create non-root user and set up workspace
RUN useradd -m -s /bin/bash amux \
&& mkdir -p /workspace \
&& chown amux:amux /workspace
USER amux
WORKDIR /workspace