Adding a dockerfile to build the flutter apk

This commit is contained in:
Zoe Roux
2022-01-26 14:44:21 +01:00
parent 39c5c05f72
commit 694c6bb53f
10 changed files with 34 additions and 11 deletions
View File
View File
+2
View File
@@ -0,0 +1,2 @@
.stack-work
dist-newstyle
+1
View File
@@ -1,2 +1,3 @@
.stack-work
dist-newstyle
+2 -1
View File
@@ -1,8 +1,9 @@
FROM haskell:8
WORKDIR /opt/aeris
RUN cabal update
COPY ./aeris.cabal /opt/aeris/aeris.cabal
RUN cabal build --only-dependencies -j4
COPY . /opt/aeris
RUN cabal install
CMD ["aeris"]
CMD aeris
+1 -1
View File
@@ -39,7 +39,7 @@ library
, warp
default-language: Haskell2010
executable aeris-exe
executable aeris
main-is: Main.hs
other-modules:
Paths_aeris
+14 -8
View File
@@ -9,15 +9,21 @@ services:
- "${POSTGRES_PORT}:5432"
mobile:
build: ./mobile
front:
build: ./front
ports:
- "80:80"
depends_on:
- "mobile"
back:
build: ./back
volumes:
- apk:/dist
# front:
# build: ./web
# ports:
# - "80:80"
# depends_on:
# - "mobile"
api:
build: ./api
ports:
- "3000:81"
depends_on:
- "db"
volumes:
apk:
+5
View File
@@ -0,0 +1,5 @@
.gitignore
Dockerfile
README.md
.dart-tool
build
+8
View File
@@ -0,0 +1,8 @@
FROM mingc/android-build-box:latest
COPY pubspec.* ./
RUN flutter pub get
COPY . .
RUN flutter build apk lib/src/main.dart --no-pub
RUN find .
CMD mv ./build/app/outputs/flutter-apk/app-release.apk /dist/aeris_android.apk
+1 -1
View File
@@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.16.0-134.0.dev <3.0.0"
sdk: ">=2.12.0 <3.0.0"
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions