pastebin/Dockerfile
Tai Groot ead67c221f
updates dockerfile to work with latest golang, adds .dockerignore, fixes CI (#4)
* adds support for https://github.com/golang/go/issues/32479

* updated dockerfile to work with latest golang, added .dockerignore
2020-10-15 16:41:45 +10:00

20 lines
318 B
Docker

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
RUN go get github.com/GeertJohan/go.rice/rice
RUN GOROOT=/go rice embed-go
RUN go install -v