-
Notifications
You must be signed in to change notification settings - Fork 896
Expand file tree
/
Copy pathDockerfile.dev
More file actions
30 lines (25 loc) · 1.02 KB
/
Dockerfile.dev
File metadata and controls
30 lines (25 loc) · 1.02 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
# Local development Dockerfile — skips cqlsh (not needed for test execution).
# Use with: ./simulation/history/run.sh --scenario <name> --dockerfile-suffix .dev
FROM golang:1.24.5-bullseye
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
gettext-base \
libyaml-dev \
time \
unzip \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# verbose test output from `make`, can be disabled with V=0
ENV V=0
# allow git-status and similar to work
RUN git config --global --add safe.directory /cadence
# https://github.com/docker-library/golang/blob/c1baf037d71331eb0b8d4c70cff4c29cf124c5e0/1.4/Dockerfile
RUN mkdir -p /cadence
WORKDIR /cadence
# Copy go mod dependencies and try to share the module download cache
COPY go.* /cadence
COPY internal/tools/go.* /cadence/internal/tools/
COPY cmd/server/go.* /cadence/cmd/server/
COPY common/archiver/gcloud/go.* /cadence/common/archiver/gcloud/
# go.work means this downloads everything, not just the top module
RUN go mod download