Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove python bytecode #523

Merged
merged 1 commit into from
Jan 14, 2019
Merged

Remove python bytecode #523

merged 1 commit into from
Jan 14, 2019

Conversation

pmav99
Copy link
Contributor

@pmav99 pmav99 commented Jan 4, 2019

The image contains python bytecode files (*.pyc). Removing them will reduce the size of the image by ~10MB. Removing them will not have any real impact as they will be recreated on first run. More info on *.pyc files here

You can check the size of the existing *.pyc files using:

find / -name *.pyc -exec du -ch {} + | tail -n1

The pull request just adds two lines that remove the relevant files and the directories that contain them

@kingdonb
Copy link
Collaborator

kingdonb commented Jan 6, 2019

Sounds fine to me! Thanks for your contribution

@Theaxiom Theaxiom added this to the 0.11.1 milestone Jan 14, 2019
@Theaxiom Theaxiom merged commit 14394bc into phusion:master Jan 14, 2019
@pmav99 pmav99 deleted the python_bytecode branch January 17, 2019 15:18
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.

None yet

3 participants