mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[PR #216] [MERGED] Copy project into image instead of cloning to avoid stale images on Docker Hub #1095
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#1095
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/216
Author: @bltavares
Created: 4/12/2019
Status: ✅ Merged
Merged: 4/12/2019
Merged by: @pirate
Base:
master← Head:master📝 Commits (1)
e9f9c1eCopy project into image instead of cloning📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
Dockerfile(+2 -2)📄 Description
Docker
RUNstatements cache based on the text of the command executed,not the content of what it does to the image.
Since the command was cloning the project, and the text didn't change,
building the image would not update the code if the image was already
cached. This lead to a stale Docker image distributed on Docker Hub.
This could also cause some confusion, as modified code would not show up
on the image during the build process.
This commit changes the build process to copy the content of the project
into the image. Whenever a file changes it will trigger a new updated
image.
IMPORTANT: Do not submit PRs with only formatting / PEP8 / line length changes, I will close them with great prejudice. The PEP8 checks I don't follow are intentional. PRs for minor bugfixes, typos, etc are fine.
Changes these areas
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.