minor
This commit is contained in:
21
dashboard/Dockerfile
Normal file
21
dashboard/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
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;"]
|
||||
Reference in New Issue
Block a user