Skip to content

Commit 1646a1f

Browse files
authored
Merge pull request #7264 from mboersma/fix-tilt-docker-access
🐛 Tiltfile: remove USER instruction from Dockerfile
2 parents f7fd599 + ec3c5ba commit 1646a1f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Tiltfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,6 @@ COPY --from=tilt-helper /go/bin/dlv .
207207
COPY $binary_name .
208208
"""
209209

210-
tilt_dockerfile_footer = """
211-
# Use same USER instruction as in kubebuilder-generated Dockerfile
212-
USER 65532:65532
213-
"""
214-
215210
def build_go_binary(context, reload_deps, debug, go_main, binary_name, label):
216211
# Set up a local_resource build of a go binary. The target repo is expected to have a main.go in
217212
# the context path or the main.go must be provided via go_main option. The binary is written to .tiltbuild/bin/{$binary_name}.
@@ -274,7 +269,6 @@ def build_docker_image(image, context, binary_name, additional_docker_build_comm
274269
additional_docker_helper_commands,
275270
tilt_dockerfile_header,
276271
additional_docker_build_commands,
277-
tilt_dockerfile_footer,
278272
])
279273

280274
# Set up an image build for the provider. The live update configuration syncs the output from the local_resource

0 commit comments

Comments
 (0)