mirror of
https://github.com/zoriya/Aeris.git
synced 2026-06-03 03:01:46 +00:00
Adding a dockerfile to build the flutter apk
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
.stack-work
|
||||
dist-newstyle
|
||||
@@ -1,2 +1,3 @@
|
||||
.stack-work
|
||||
dist-newstyle
|
||||
|
||||
|
||||
+2
-1
@@ -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
@@ -39,7 +39,7 @@ library
|
||||
, warp
|
||||
default-language: Haskell2010
|
||||
|
||||
executable aeris-exe
|
||||
executable aeris
|
||||
main-is: Main.hs
|
||||
other-modules:
|
||||
Paths_aeris
|
||||
|
||||
+14
-8
@@ -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:
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
.gitignore
|
||||
Dockerfile
|
||||
README.md
|
||||
.dart-tool
|
||||
build
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user