honk/Dockerfile
2023-07-07 20:11:44 +02:00

17 lines
365 B
Docker

FROM golang:1.16
RUN apt update && apt install -y libsqlite3-dev && rm -rf /var/cache/apt/*
RUN mkdir /honk-src
COPY *.go docs/ toys/ vendor/ views/ /honk-src/
WORKDIR /honk-src
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"]