2017-07-03 06:42:34 +00:00
|
|
|
FROM golang:alpine
|
|
|
|
|
|
|
|
EXPOSE 8000/tcp
|
|
|
|
|
|
|
|
ENTRYPOINT ["pastebin"]
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
apk add --update git && \
|
|
|
|
rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
RUN mkdir -p /go/src/pastebin
|
|
|
|
WORKDIR /go/src/pastebin
|
|
|
|
|
|
|
|
COPY . /go/src/pastebin
|
|
|
|
|
|
|
|
RUN go get -v -d
|
2017-07-09 08:57:21 +00:00
|
|
|
RUN go get github.com/GeertJohan/go.rice/rice
|
2020-10-15 06:41:45 +00:00
|
|
|
RUN GOROOT=/go rice embed-go
|
2017-07-03 06:42:34 +00:00
|
|
|
RUN go install -v
|