Skip to content

Commit

Permalink
Dockerfile: Add .dockerignore
Browse files Browse the repository at this point in the history
to ignore all files except those necessary for building and running
cointop in docker.
  • Loading branch information
afh committed Apr 18, 2021
1 parent 06fd267 commit 4179a13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**
!go.*
!*.go
!assets
!cmd
!cointop
!pkg
!vendor
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN mkdir /app
WORKDIR /app
ARG VERSION

ADD . /app/
COPY . ./
RUN go build -ldflags=-s -ldflags=-w -ldflags=-X=github.com/miguelmota/cointop/cointop.version=$VERSION -o main .
RUN git clone https://github.com/cointop-sh/colors && rm -Rf colors/.git*

Expand Down

0 comments on commit 4179a13

Please sign in to comment.