18 lines
530 B
Docker
18 lines
530 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM node:lts AS buildfront
|
|
COPY front .
|
|
RUN npm install && npm run build
|
|
|
|
FROM golang:1.26 AS build
|
|
WORKDIR /src
|
|
COPY . .
|
|
COPY --from=buildfront ./dist front/dist
|
|
RUN go build -tags=embed -o /bin/bibliomane
|
|
|
|
FROM debian:trixie
|
|
RUN apt-get update
|
|
RUN apt-get install -y ca-certificates
|
|
RUN mkdir /opt/bibliomane
|
|
COPY --from=build /bin/bibliomane /bin/bibliomane
|
|
ENTRYPOINT ["/bin/bibliomane", "-c", "/opt/bibliomane/biliomane.toml", "-i", "/opt/bibliomane/img", "-d", "/opt/bibliomane/bibliomane.db"]
|