honk/Dockerfile

21 lines
394 B
Docker
Raw Normal View History

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