Skip to content

Commit

Permalink
Merge pull request #2654 from carapace-sh/docker-user
Browse files Browse the repository at this point in the history
set docker user
  • Loading branch information
rsteube authored Dec 22, 2024
2 parents f3e82fe + 02e5273 commit c598f71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .docker/carapace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ services:
build: &base
image: ghcr.io/carapace-sh/carapace
command: sh -c 'sh -c "cd /carapace-bin/cmd/carapace && go generate ./... && go build -ldflags=\"-s -w\" ."'
user: 1000:1000
environment:
CARAPACE_BRIDGES: zsh,fish,bash
TARGET: /carapace-bin/cmd/carapace/carapace
Expand Down Expand Up @@ -69,13 +70,12 @@ services:
lint:
<<: *base
working_dir: /carapace-bin
command: bash -c 'go run ./cmd/caralint completers/*/cmd/*.go'
command: bash -c 'go run ./cmd/carapace-lint completers/*/cmd/*.go'

fmt:
<<: *base
working_dir: /carapace-bin
# user: 1000:1000
command: bash -c 'go run ./cmd/carafmt completers/*/cmd/*.go'
command: bash -c 'go run ./cmd/carapace-fmt completers/*/cmd/*.go'

volumes:
go:

0 comments on commit c598f71

Please sign in to comment.