build: Fix dockerfile to build web app
This commit is contained in:
parent
214338ce56
commit
ee19b1f359
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,8 @@ RUN sudo apt update && sudo apt install curl -y
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN ./scripts/prepare-web.sh
|
RUN ./scripts/prepare-web.sh
|
||||||
RUN ./scripts/build-web.sh
|
RUN flutter pub get
|
||||||
|
RUN flutter build web --release --source-maps
|
||||||
|
|
||||||
FROM docker.io/nginx:alpine
|
FROM docker.io/nginx:alpine
|
||||||
RUN rm -rf /usr/share/nginx/html
|
RUN rm -rf /usr/share/nginx/html
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue