yap
yap copied to clipboard
building with docker -
Hi I am trying to use YAP. The easiest way was to use docker to build. Here is a working Dockerfile
FROM golang:1.12-buster
RUN apt update && apt install -y bzip2 ca-certificates libgnutls30
RUN mkdir -p /yap/src COPY . /yap/src/yap
ENV GOPATH=/yap WORKDIR /yap/src/yap
RUN bunzip2 data/*.bz2 RUN go get . RUN go build .
EXPOSE 8000
ENTRYPOINT ["/yap/src/yap/yap", "api"]