15 lines
340 B
Docker
15 lines
340 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM node:lts AS buildfront
|
|
COPY front .
|
|
RUN npm install && npm run build
|
|
|
|
FROM golang:1.25 AS build
|
|
WORKDIR /src
|
|
COPY . .
|
|
COPY --from=buildfront ./dist front/dist
|
|
RUN go build -tags=embed -o /bin/bibliomane
|
|
|
|
FROM debian:bookworm
|
|
COPY --from=build /bin/bibliomane /bin/bibliomane
|
|
ENTRYPOINT ["/bin/bibliomane"]
|