|
|
|
@ -77,8 +77,6 @@ RUN apt-get update && apt-get -y install \
|
|
|
|
|
php-imagick \
|
|
|
|
|
composer
|
|
|
|
|
|
|
|
|
|
RUN curl --location "https://golang.org/dl/go1.18.linux-amd64.tar.gz" | tar -xzf - -C /usr/local/
|
|
|
|
|
RUN ln -s /usr/local/go/bin/* /usr/local/bin/
|
|
|
|
|
|
|
|
|
|
run mkdir -p /opt/nodejs
|
|
|
|
|
RUN curl --location "https://nodejs.org/dist/v17.8.0/node-v17.8.0-linux-x64.tar.xz" | tar -Jxf - --strip-components=1 -C /opt/nodejs/
|
|
|
|
@ -98,9 +96,20 @@ RUN apt-file update
|
|
|
|
|
RUN curl -fsSL https://github.com/drone/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz \
|
|
|
|
|
| tar -xzf - -C /usr/bin/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN curl --location "https://golang.org/dl/go1.18.linux-amd64.tar.gz" | tar -xzf - -C /usr/local/
|
|
|
|
|
#RUN ln -s /usr/local/go/bin/* /usr/local/bin/
|
|
|
|
|
|
|
|
|
|
RUN GOPATH=/usr/local/gopkg /bin/bash -c 'for package in \
|
|
|
|
|
golang.org/x/tools/cmd/...@latest \
|
|
|
|
|
golang.org/x/tools/gopls@latest \
|
|
|
|
|
github.com/dougm/goflymake@latest \
|
|
|
|
|
golang.org/x/tools/cmd/goimports@latest; do \
|
|
|
|
|
/usr/local/go/bin/go install "$package"; done'
|
|
|
|
|
|
|
|
|
|
ADD . /opt/workspace-repo
|
|
|
|
|
WORKDIR /opt/workspace-repo
|
|
|
|
|
RUN go build .
|
|
|
|
|
RUN /usr/local/go/bin/go build .
|
|
|
|
|
RUN cp ./workspace /bin/workspace
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/bin/workspace", "entrypoint" ]
|
|
|
|
|