Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.github
.gitignore
*.md
!go.mod
LICENSE
assets
docs
bin
_awsd_prompt
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
echo "RELEASE_TYPE=${RELEASE_TYPE}" >> $GITHUB_ENV

- name: Create Release 🎉
uses: ncipollo/release-action@v1.20.0
uses: ncipollo/release-action@v1
if: github.ref_type == 'tag'
with:
bodyFile: "changelog.txt"
Expand Down
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM golang:1.25-alpine3.23 AS builder

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o _awsd_prompt

FROM alpine:3.23

RUN adduser -D -u 1000 awsd

COPY --from=builder /app/_awsd_prompt /usr/local/bin/_awsd_prompt
COPY scripts/_awsd /usr/local/bin/_awsd
COPY scripts/_awsd_autocomplete /usr/local/bin/_awsd_autocomplete

USER awsd
WORKDIR /home/awsd

ENTRYPOINT ["_awsd_prompt"]
# docker run -it -v ~/.aws:/home/awsd/.aws:ro -v ~/.awsd:/home/awsd/.awsd awsd