Skip to content

Commit

Permalink
add tran docker image and dockerfile, add .gitattributes, create do…
Browse files Browse the repository at this point in the history
…cker ignore
  • Loading branch information
abdfnx committed Feb 4, 2022
1 parent 53747a1 commit df5f770
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# build dirs
dist

# tran files
*.exe
*.exe~
tran

# dependency directories
vendor
node_modules
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine:latest

# install go
COPY --from=golang:1.17-alpine /usr/local/go/ /usr/local/go/

ENV PATH="/usr/local/go/bin:${PATH}"

RUN apk update && apk upgrade

RUN go install github.com/abdfnx/tran@latest

ENTRYPOINT ["/root/go/bin/tran"]

0 comments on commit df5f770

Please sign in to comment.