mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-01 09:09:34 -06:00
23 lines
542 B
Docker
23 lines
542 B
Docker
FROM golang:alpine as server
|
|
WORKDIR /src
|
|
COPY server/ .
|
|
RUN go build -o /bin/phylum cmd/phylum.go
|
|
|
|
FROM ghcr.io/cirruslabs/flutter:stable AS webapp
|
|
WORKDIR /src
|
|
RUN flutter precache --no-universal --web
|
|
COPY client/pubspec.yaml client/pubspec.lock .
|
|
COPY client/lib ./lib
|
|
COPY client/web ./web
|
|
COPY client/assets ./assets
|
|
RUN flutter pub get
|
|
RUN flutter build web --wasm
|
|
|
|
FROM alpine
|
|
WORKDIR /app
|
|
ENV PATH="/app:$PATH"
|
|
COPY --from=server /bin/phylum /app/phylum
|
|
COPY --from=webapp /src/build/web /app/web
|
|
ENTRYPOINT ["phylum"]
|
|
CMD ["serve"]
|