Remove old files when building Docker image.

Otherwise files that were renamed or removed since the last bootstrap
image was built will reappear and break the build.
This commit is contained in:
Anthony Yeh 2015-04-24 00:58:04 -07:00
Родитель c88513e39a
Коммит 55621d51d7
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1,10 +1,13 @@
FROM vitess/bootstrap:mariadb
# Clear out old tree from bootstrap image.
USER root
RUN rm -rf /vt/src/github.com/youtube/vitess
# Re-copy sources from working tree
COPY . /vt/src/github.com/youtube/vitess
# Fix permissions
USER root
RUN chown -R vitess:vitess /vt
USER vitess