-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rachana-egov
committed
Jan 17, 2024
1 parent
0bd3119
commit 66d2101
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Docker flutter tags https://hub.docker.com/r/cirrusci/flutter/tags?page=1&name=1.16 | ||
|
||
FROM cirrusci/flutter:3.7.7 AS build | ||
ARG WORK_DIR | ||
WORKDIR /app | ||
# copy the project files | ||
COPY ${WORK_DIR} . | ||
RUN flutter doctor | ||
RUN flutter clean | ||
RUN flutter pub get | ||
RUN flutter build web | ||
# Create runtime image | ||
FROM nginx:mainline-alpine | ||
ENV WEB_DIR=/var/web/widgetbook | ||
#RUN mkdir -p ${WEB_DIR} | ||
COPY --from=build /app/build/web/ ${WEB_DIR}/ | ||
COPY --from=build /app/docker/nginx.conf /etc/nginx/conf.d/default.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
server | ||
{ | ||
listen 80; | ||
underscores_in_headers on; | ||
server_tokens off; | ||
location /widgetbook | ||
{ | ||
root /var/web; | ||
index index.html index.htm; | ||
try_files $uri $uri/ /works-shg-app/index.html; | ||
} | ||
} |