Dockerfile: Add .dockerignore

to ignore all files except those necessary for building and running
cointop in docker.
pull/109/head
afh 3 years ago
parent 06fd26752c
commit 4179a131df

@ -0,0 +1,8 @@
**
!go.*
!*.go
!assets
!cmd
!cointop
!pkg
!vendor

@ -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*

Loading…
Cancel
Save