File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -98,18 +98,23 @@ def validate_auth():
98
98
99
99
tilt_helper_dockerfile_header = """
100
100
# Tilt image
101
- FROM golang:1.18 as tilt-helper
101
+ FROM golang:1.23.6 as tilt-helper
102
+ # Install delve. Note this should be kept in step with the Go release minor version.
103
+ RUN go install github.com/go-delve/delve/cmd/dlv@v1.23
102
104
# Support live reloading with Tilt
103
- RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
104
- wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \
105
- chmod +x /start.sh && chmod +x /restart.sh
105
+ RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/tilt-dev/rerun-process-wrapper/master/restart.sh && \
106
+ wget --output-document /start.sh --quiet https://raw.githubusercontent.com/tilt-dev/rerun-process-wrapper/master/start.sh && \
107
+ chmod +x /start.sh && chmod +x /restart.sh && chmod +x /go/bin/dlv && \
108
+ touch /process.txt && chmod 0777 /process.txt `# pre-create PID file to allow even non-root users to run the image`
106
109
"""
107
110
108
111
tilt_dockerfile_header = """
109
- FROM gcr.io/distroless/base:debug as tilt
112
+ FROM golang:1.23.6 as tilt
110
113
WORKDIR /
114
+ COPY --from=tilt-helper /process.txt .
111
115
COPY --from=tilt-helper /start.sh .
112
116
COPY --from=tilt-helper /restart.sh .
117
+ COPY --from=tilt-helper /go/bin/dlv .
113
118
COPY manager .
114
119
"""
115
120
You can’t perform that action at this time.
0 commit comments