From b197fe2e81e129d1c09deecb80c432550b138c28 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 27 Feb 2021 08:13:32 +0330 Subject: added a dockerfile for gitpod --- .gitpod.Dockerfile | 11 +++++++++++ .gitpod.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .gitpod.Dockerfile diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000..60533e8 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,11 @@ +FROM gitpod/workspace-full + +RUN apt update && apt upgrade -y +RUN apt install -y go git +COPY go.* /hived/ +RUN cd /hived && go mod download +COPY *.go /hived/ +RUN cd /hived && go build + +COPY ./docker-entrypoint.sh /hived/ +ENTRYPOINT ["/hived/docker-entrypoint.sh"] diff --git a/.gitpod.yml b/.gitpod.yml index 0fc07cc..f15c853 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,5 +1,5 @@ image: - file: ./Dockerfile + file: .gitpod.Dockerfile tasks: - init: go mod download -- cgit v1.2.3