Кэш докера

Примеры кода

1
0

пример файла dockerfile

FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py
0
0

докер очистит кэш

# Rebuild the image
docker build --no-cache

# Pull the base images again and rebuild
docker build --no-cache --pull

# Also works with docker-compose
docker-compose build --no-cache

# If nothing from the above works for you, you could also prune everything
docker system to prune
-2
0

dockerfile запуск приложения cmd

RUN apt-get install python3
CMD echo "Hello world"
ENTRYPOINT echo "Hello world"

Похожие страницы

Похожие страницы с примерами

На других языках

Эта страница на других языках

English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................