Initialize project and update portal port configuration
Set default portal port to 8081, fix Dart build issue in cart screen, and update setup documentation. Co-Authored-By: Oz <oz-agent@warp.dev>
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
FROM ghcr.io/cirruslabs/flutter:stable AS build
|
||||
|
||||
WORKDIR /workspace/app
|
||||
RUN flutter config --enable-web
|
||||
RUN flutter create --platforms=web --project-name flutter_ecommerce_portal --org com.example.portal /workspace/app
|
||||
|
||||
COPY pubspec.yaml /workspace/app/pubspec.yaml
|
||||
RUN flutter pub get
|
||||
|
||||
COPY lib /workspace/app/lib
|
||||
COPY assets /workspace/app/assets
|
||||
RUN flutter build web --release
|
||||
|
||||
FROM nginx:1.27-alpine AS runtime
|
||||
|
||||
COPY --from=build /workspace/app/build/web /usr/share/nginx/html
|
||||
COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY docker/entrypoint/30-generate-runtime-config.sh /docker-entrypoint.d/30-generate-runtime-config.sh
|
||||
COPY assets/config/runtime_config.template.json /opt/runtime_config.template.json
|
||||
|
||||
RUN chmod +x /docker-entrypoint.d/30-generate-runtime-config.sh
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user