fix: exclude non source files in .dockerignore (#3387)

This commit is contained in:
Paolo Facchinetti
2023-06-26 18:36:44 +02:00
committed by GitHub
parent 3c126a04d8
commit 6d4fe271fc
2 changed files with 22 additions and 6 deletions

View File

@ -1,6 +1,19 @@
/target
/book
/assets
/.github
/data
*.tar.gz
# exclude everything
*
# include source files
!/bin
!/crates
!/testing
!book.toml
!Cargo.lock
!Cargo.toml
!Cross.toml
!deny.toml
!Makefile
# include dist directory, where the reth binary is located after compilation
!/dist
# include licenses
!LICENSE-*

View File

@ -33,5 +33,8 @@ WORKDIR app
# Copy reth over from the build stage
COPY --from=builder /app/target/release/reth /usr/local/bin
# Copy licenses
COPY LICENSE-* .
EXPOSE 30303 30303/udp 9001 8545 8546
ENTRYPOINT ["/usr/local/bin/reth"]