File tree Expand file tree Collapse file tree 4 files changed +19
-32
lines changed
Expand file tree Collapse file tree 4 files changed +19
-32
lines changed Original file line number Diff line number Diff line change 1717 with :
1818 ref : " web"
1919
20- - name : Set Gradle Java Home
21- run : sed -i '$d' frontend/android/gradle.properties
22-
23- - name : Set Up Java
24- uses : actions/setup-java@v3
25- with :
26- distribution : " oracle"
27- java-version : " 17"
28- cache : gradle
29-
30- - name : Set Up Flutter
31- uses : subosito/flutter-action@v2
32- with :
33- flutter-version : " 3.27.2"
34- channel : " stable"
35- cache : true
36-
37- - name : Install Dependencies
38- run : |
39- cd frontend
40- flutter pub get
41-
42- - name : Build Web Files
43- run : |
44- cd frontend && flutter build web
45-
4620 - name : Log in to GitHub Container Registry
4721 uses : docker/login-action@v3
4822 with :
Original file line number Diff line number Diff line change @@ -5,9 +5,12 @@ services:
55 ports :
66 - 80:80
77 restart : unless-stopped
8- depends-on : backend
8+ depends-on :
9+ - backend
910
1011 backend :
1112 container_name : slcm-backend
1213 build : backend
14+ ports :
15+ - 8000:8000
1316 restart : unless-stopped
Original file line number Diff line number Diff line change 11services :
22 frontend :
33 container_name : slcm-frontend
4- image : ghcr.io/dk10ws/slcm-frontend:main
4+ image : ghcr.io/dk10ws/slcm-frontend:latest
55 ports :
66 - 80:80
77 restart : unless-stopped
@@ -10,5 +10,7 @@ services:
1010
1111 backend :
1212 container_name : slcm-backend
13- image : ghcr.io/dk10ws/slcm-frontend:main
13+ image : ghcr.io/dk10ws/slcm-backend:latest
14+ ports :
15+ - 8000:8000
1416 restart : unless-stopped
Original file line number Diff line number Diff line change 1- FROM nginx:alpine-slim
1+ FROM ghcr.io/cirruslabs/flutter:latest AS builder
22
3- COPY build/web /usr/share/nginx/html
3+ WORKDIR /app
4+ COPY . .
5+
6+ RUN flutter pub get
7+ RUN flutter build web
8+
9+
10+ FROM nginx:alpine-slim AS runner
11+
12+ COPY --from=builder /app/build/web /usr/share/nginx/html
413COPY nginx.conf /etc/nginx/conf.d/default.conf
514
615CMD ["nginx" , "-g" , "daemon off;" ]
7-
You can’t perform that action at this time.
0 commit comments