Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions golang/centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM centos:7

RUN yum -y update && yum clean all
ENV GOPATH /go

RUN mkdir -p /go && chmod -R 777 /go && \
RUN yum -y update && \
mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" && \
yum -y install git golang && yum clean all

ENV GOPATH /go
ENV PATH $PATH:$GOPATH/bin

WORKDIR /go
WORKDIR $GOPATH