Skip to content

Commit

Permalink
chore: add Dockerfile (#3)
Browse files Browse the repository at this point in the history
* chore: add Dockerfile

Signed-off-by: Kaan Yagci <kaan.yagci@makepad.fr>

* fixup! chore: add Dockerfile

fix: syntax issue
Signed-off-by: Kaan Yagci <kaan.yagci@makepad.fr>

* fixup! chore: add Dockerfile

fix: image name syntax error
Signed-off-by: Kaan Yagci <kaan.yagci@makepad.fr>

* fixup! chore: add Dockerfile

fix: add missing update to install wget
Signed-off-by: Kaan Yagci <kaan.yagci@makepad.fr>

---------

Signed-off-by: Kaan Yagci <kaan.yagci@makepad.fr>
  • Loading branch information
kaanyagci authored Mar 25, 2024
1 parent ca54c42 commit da75560
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit da75560

Please sign in to comment.