build testground and copy to run image

This commit is contained in:
Yusef Napora 2020-06-22 11:57:05 -04:00
parent 202cdda358
commit c9dbf908b5

View File

@ -1,7 +1,16 @@
FROM golang:1.14.4-buster as tg-build
ARG TESTGROUND_REF="oni"
WORKDIR /usr/src
RUN git clone https://github.com/testground/testground.git
RUN cd testground && git checkout $TESTGROUND_REF && go build .
FROM python:3.8-buster FROM python:3.8-buster
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY --from=tg-build /usr/src/testground/testground /usr/bin/testground
RUN mkdir /composer && chmod 777 /composer RUN mkdir /composer && chmod 777 /composer
RUN mkdir /testground && chmod 777 /testground RUN mkdir /testground && chmod 777 /testground