honk/Dockerfile

22 lines
413 B
Text
Raw Normal View History

2023-02-03 06:13:58 +00:00
FROM golang:1.19
2022-11-13 15:24:25 +00:00
RUN apt update && apt install -y libsqlite3-dev && rm -rf /var/cache/apt/*
RUN mkdir /honk-src
WORKDIR /honk-src
2023-02-03 06:13:58 +00:00
COPY go.mod go.sum /honk-src/
COPY . /honk-src/
RUN go get && go mod vendor
2022-11-13 15:24:25 +00:00
RUN make
RUN mv ./honk /bin/honk
CMD ["/bin/honk", "-datadir", "/honk-data"]
COPY docker-entrypoint.sh /honk-src/docker-entrypoint.sh
2023-08-11 05:38:37 +00:00
WORKDIR /honk-data
2022-11-13 15:24:25 +00:00
ENTRYPOINT ["/honk-src/docker-entrypoint.sh"]