honk/Dockerfile

22 lines
413 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
2023-08-11 07:38:37 +02:00
WORKDIR /honk-data
2022-11-13 16:24:25 +01:00
ENTRYPOINT ["/honk-src/docker-entrypoint.sh"]