github.com/Tyktechnologies/tyk@v2.9.5+incompatible/images/plugin-compiler/Dockerfile (about) 1 FROM golang:1.12 2 LABEL io.tyk.vendor="Tyk" \ 3 version="1.0" \ 4 description="Image for plugin development" 5 6 ENV GOPATH=/go 7 ARG TYK_GW_TAG 8 ENV TYK_GW_PATH=${GOPATH}/src/github.com/TykTechnologies/tyk 9 # This directory will contain the plugin source and will be 10 # mounted from the host box by the user using docker volumes 11 ENV PLUGIN_SOURCE_PATH=/plugin-source 12 # This is the temporary path where the plugin will be built 13 ENV PLUGIN_BUILD_PATH=/go/src/plugin-build 14 15 RUN mkdir -p $TYK_GW_PATH $PLUGIN_SOURCE_PATH $PLUGIN_BUILD_PATH 16 COPY images/plugin-compiler/data/build.sh /build.sh 17 RUN chmod +x /build.sh 18 19 RUN curl -sL "https://api.github.com/repos/TykTechnologies/tyk/tarball/${TYK_GW_TAG}" | \ 20 tar -C $TYK_GW_PATH --strip-components=1 -xzf - 21 RUN yes | cp -r $TYK_GW_PATH/vendor $GOPATH/src && rm -rf $TYK_GW_PATH/vendor 22 23 ENTRYPOINT ["/build.sh"] 24