-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile.dev
More file actions
21 lines (17 loc) · 779 Bytes
/
Dockerfile.dev
File metadata and controls
21 lines (17 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM golang:1.26
RUN apt-get update && apt-get install -y --no-install-recommends curl make socat unzip && rm -rf /var/lib/apt/lists/*
# Bun from GitHub release (pinned to match frontend/package.json)
ARG TARGETARCH
RUN case "$TARGETARCH" in \
amd64) BUN_ARCH=x64 ;; \
arm64) BUN_ARCH=aarch64 ;; \
*) echo "unsupported arch: $TARGETARCH" && exit 1 ;; \
esac \
&& curl -fsSL -o /tmp/bun.zip "https://github.com/oven-sh/bun/releases/download/bun-v1.3.11/bun-linux-${BUN_ARCH}.zip" \
&& unzip -q /tmp/bun.zip -d /tmp/bun \
&& mv /tmp/bun/bun-linux-${BUN_ARCH}/bun /usr/local/bin/bun \
&& chmod +x /usr/local/bin/bun \
&& rm -rf /tmp/bun /tmp/bun.zip
# Air for Go live reload
RUN go install github.com/air-verse/air@v1.65.0
WORKDIR /app