Files
docker-compose-projects/dashboard/Dockerfile
2026-02-23 16:40:06 +03:00

22 lines
416 B
Docker

FROM ghcr.io/cirruslabs/flutter:stable AS build
WORKDIR /app
COPY pubspec.* ./
RUN flutter pub get
COPY . .
ARG API_BASE_URL
RUN mkdir -p assets && printf 'API_BASE_URL=%s\n' "${API_BASE_URL}" > assets/env
RUN flutter build web --release
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build/web /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]