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

optimize dockerfile #671

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

optimize dockerfile #671

wants to merge 1 commit into from

Conversation

jingsam
Copy link
Contributor

@jingsam jingsam commented Nov 16, 2018

No description provided.

@e-n-f
Copy link
Contributor

e-n-f commented Nov 16, 2018

Thanks for the contribution. Can you provide a little more information about the purpose of this change?

@@ -3,8 +3,8 @@ FROM ubuntu:16.04

# Update repos and install dependencies
RUN apt-get update \
&& apt-get -y upgrade \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not run apt-get upgrade in docker, use a new version of image instead, eg. Ubuntu:18.04.

&& apt-get -y upgrade \
&& apt-get -y install build-essential libsqlite3-dev zlib1g-dev
&& apt-get -y install build-essential libsqlite3-dev zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove apt cache, which make the docker image smaller and cleaner.

@jingsam
Copy link
Contributor Author

jingsam commented Nov 18, 2018

I add a review for the changes, please check.

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