Skip to content

.dockerignore: ignore unnecessary repo files#54

Merged
ee7 merged 1 commit intoexercism:mainfrom
ee7:dockerignore-repo-files
Aug 7, 2023
Merged

.dockerignore: ignore unnecessary repo files#54
ee7 merged 1 commit intoexercism:mainfrom
ee7:dockerignore-repo-files

Conversation

@ee7
Copy link
Copy Markdown
Member

@ee7 ee7 commented Aug 6, 2023

On the penultimate line of our Dockerfile we have the instruction:

COPY . .

which previously copied some small unneeded repo files into the images. Add them to the ignore list so that they are no longer copied.

With this commit, the /opt/test-runner directory in the image contains only /opt/test-runner/bin/run.sh.

We could instead change that COPY instruction to copy that specific file, but let's stick with the .dockerignore approach for now.

Refs: #34 (to a tiny extent)

On the penultimate line of our Dockerfile we have the instruction:

    COPY . .

which previously copied some small unneeded repo files into the images.
Add them to the ignore list so that they are no longer copied.

With this commit, the /opt/test-runner directory in the image contains
only this file:

    /opt/test-runner/bin/run.sh

Refs: exercism#34
@ee7 ee7 requested a review from a team as a code owner August 6, 2023 12:56
Comment thread .dockerignore
@ee7 ee7 merged commit 4fc9277 into exercism:main Aug 7, 2023
@ee7 ee7 deleted the dockerignore-repo-files branch August 7, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants