FROM vitess/bootstrap:mariadb
# Re-copy sources from working tree
USER root
COPY . /vt/src/github.com/youtube/vitess
# Fix permissions
RUN chown -R vitess:vitess /vt
USER vitess
# Build Vitess
RUN make build