Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building with docker - #10

Open
davidvoler opened this issue Nov 23, 2022 · 0 comments
Open

building with docker - #10

davidvoler opened this issue Nov 23, 2022 · 0 comments

Comments

@davidvoler
Copy link

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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant