Skip to content

Commit

Permalink
Improve docker image size; Add lints package; Bump to 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Nov 6, 2021
1 parent 2fc8e4f commit be9c93b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Dockerfile
build/
.dart_tool/
.git/
.github/
.gitignore
.packages
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
2.1.1
## 2.1.2

- Improve docker image size

## 2.1.1

- Fix #9 and #11

Expand Down
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM google/dart:2.14.3
FROM google/dart:2.14.3 as builder

WORKDIR /app

Expand All @@ -10,5 +10,10 @@ RUN pub get --offline

RUN dart compile exe bin/running_on_dart.dart

FROM ubuntu
WORKDIR /app

COPY --from=builder /app/bin/running_on_dart.exe /app

CMD []
ENTRYPOINT [ "./bin/running_on_dart.exe" ]
ENTRYPOINT [ "./running_on_dart.exe" ]
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: running_on_dart
version: 2.1.1
version: 2.1.2
description: Discord Bot for nyxx development
homepage: https://github.com/nyxx-discord/running_on_dart
repository: https://github.com/nyxx-discord/running_on_dart
Expand Down

0 comments on commit be9c93b

Please sign in to comment.