19 lines
407 B
Docker
19 lines
407 B
Docker
# Frontend Dockerfile for Chitfund (Flutter Web)
|
|
FROM node:20-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# We serve the build/web directory.
|
|
# NOTE: This Dockerfile assumes you have already run 'flutter build web'
|
|
# or we will use a multi-stage build if you prefer.
|
|
# For simplicity in this home lab, we copy the build output.
|
|
|
|
COPY package*.json ./
|
|
RUN npm install express
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["node", "web-server.js"]
|