Skip to content

Commit

Permalink
fix(build): copy entrypoint before app
Browse files Browse the repository at this point in the history
This is better as app/ will likely change more often than entrypoint.sh. Thus,
this change increases the degree to which the container's build layers can be
cached

Co-authored-by: Friedel Wolff <[email protected]>
  • Loading branch information
Restioson and friedelwolff committed Oct 28, 2024
1 parent a9d95a4 commit cb11b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ RUN <<EOF
EOF

# Copy project
COPY ./app /app/
COPY ./entrypoint.sh /
COPY ./app /app/

# Run the application
ENTRYPOINT ["bash", "/entrypoint.sh"]

0 comments on commit cb11b55

Please sign in to comment.