mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: exclude non source files in .dockerignore (#3387)
This commit is contained in:
committed by
GitHub
parent
3c126a04d8
commit
6d4fe271fc
@ -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-*
|
||||
@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user