Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Should not run apt upgrade in Dockerfil #41

Open
fguitton opened this issue Jun 9, 2018 · 0 comments
Open

Should not run apt upgrade in Dockerfil #41

fguitton opened this issue Jun 9, 2018 · 0 comments

Comments

@fguitton
Copy link
Member

fguitton commented Jun 9, 2018

As much as possible it is recommended not to use apt upgrade while building Docker images.
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run

# Select source image
FROM node:wheezy@sha256:4e94d7eab2c3c8c59647b534699c32c5cbcdce371e70eb314c2d056922b2a2f1
# Install all dependencies
RUN apt-get update -q && apt-get upgrade -y --no-install-recommends

# Select source image
FROM node:wheezy
# Install all dependencies
RUN apt-get update -q \
&& apt-get upgrade -y --no-install-recommends \
&& apt-get install -y python-pip \
&& apt-get install -y python3 \
&& apt-get install -y python3-pip \
&& apt-get install -y r-base

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant