Skip to content

Commit

Permalink
dockerignore: ignore doc files except ones used in build
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Oct 17, 2023
1 parent 1a89794 commit d001ef1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
Dockerfile
*.swp
.dockerignore
.gitignore
.git
*.yaml
*.md
*.json
*.sh
*.png
*.svg
.github
doc
.idea
**/*.yaml
**/*.md
**/*.json
**/*.sh
**/*.png
**/*.svg
# OSX files
.DS_Store
.DS_Store

# Exception - Used in docker build
!limitador-server/examples/limits.yaml
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ ENV RUSTFLAGS="-C target-feature=-crt-static"

COPY . .

RUN ls -larth

RUN source $HOME/.cargo/env \
&& cargo build --release

Expand Down

0 comments on commit d001ef1

Please sign in to comment.