diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..67fb51d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +ARG OPENCV_VERSION +ARG DEBIAN_TAG + +FROM makepad/opencv:${DEBIAN_TAG}-${OPENCV_VERSION} + +ARG GO_VERSION + +WORKDIR /app + +RUN apt-get update -y && \ + apt-get install -y wget tar --no-install-recommends && \ + wget -q "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" && \ + tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \ + rm ./go${GO_VERSION}.linux-amd64.tar.gz + +# Set Go environment variables +ENV PATH="${PATH}:/usr/local/go/bin" +ENV GOPATH="${HOME}/go" +ENV PATH="${PATH}:${GOPATH}/bin" \ No newline at end of file