17 lines
352 B
Docker
17 lines
352 B
Docker
# Frontend Dockerfile for Chitfund (Flutter Web)
|
|
FROM ghcr.io/cirruslabs/flutter:stable AS build
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN flutter pub get
|
|
RUN flutter build web --release
|
|
|
|
FROM node:20-slim
|
|
WORKDIR /app
|
|
RUN npm init -y && npm install express
|
|
COPY --from=build /app/build/web ./build/web
|
|
COPY web-server.js .
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["node", "web-server.js"]
|