зеркало из https://github.com/github/vitess-gh.git
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:
Родитель
c88513e39a
Коммит
55621d51d7
|
@ -1,10 +1,13 @@
|
||||||
FROM vitess/bootstrap:mariadb
|
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
|
# Re-copy sources from working tree
|
||||||
COPY . /vt/src/github.com/youtube/vitess
|
COPY . /vt/src/github.com/youtube/vitess
|
||||||
|
|
||||||
# Fix permissions
|
# Fix permissions
|
||||||
USER root
|
|
||||||
RUN chown -R vitess:vitess /vt
|
RUN chown -R vitess:vitess /vt
|
||||||
USER vitess
|
USER vitess
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче