feat: add a Dockerfile for the front end to serve web
This commit is contained in:
parent
969cbf1e8d
commit
7e4e1a902e
13
frontend/Dockerfile
Normal file
13
frontend/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM ghcr.io/cirruslabs/flutter:3.32.6 AS build
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN flutter pub get
|
||||
RUN flutter build web --release
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /app/build/web /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Loading…
Reference in New Issue
Block a user