-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontainer.dev
More file actions
25 lines (18 loc) · 910 Bytes
/
Copy pathcontainer.dev
File metadata and controls
25 lines (18 loc) · 910 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
# ============================================================================
# THIS IS FOR LOCAL DEVELOPMENT ONLY
# ============================================================================
# golang:1.26-alpine, pinned to its MULTI-ARCH manifest-list digest (works on
# amd64 + arm64). Tag is mutable, digest is immutable. Keep in sync with the
# builder stage in container.prod. To bump: re-resolve the tag's manifest-list
# digest and update the tag comment with it.
FROM golang@sha256:0178a641fbb4858c5f1b48e34bdaabe0350a330a1b1149aabd498d0699ff5fb2
# Pin tool versions for reproducible local development.
# goose CLI is intentionally NOT installed — migrations are run via the
# embedded migrator at cmd/migrate (see `make db-migrate`).
RUN go install github.com/air-verse/air@v1.65.3
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
EXPOSE 8080
CMD ["air", "-c", ".air.toml"]