2015-04-21 01:09:26 +03:00
|
|
|
FROM vitess/bootstrap:mariadb
|
2014-10-04 08:27:09 +04:00
|
|
|
|
2015-04-24 10:58:04 +03:00
|
|
|
# Clear out old tree from bootstrap image.
|
|
|
|
USER root
|
|
|
|
RUN rm -rf /vt/src/github.com/youtube/vitess
|
|
|
|
|
2015-04-21 01:09:26 +03:00
|
|
|
# Re-copy sources from working tree
|
2014-10-04 08:27:09 +04:00
|
|
|
COPY . /vt/src/github.com/youtube/vitess
|
|
|
|
|
2015-04-21 01:09:26 +03:00
|
|
|
# Fix permissions
|
|
|
|
RUN chown -R vitess:vitess /vt
|
2015-03-12 19:06:23 +03:00
|
|
|
USER vitess
|
2014-10-04 08:27:09 +04:00
|
|
|
|
|
|
|
# Build Vitess
|
|
|
|
RUN make build
|