From 9322f914f90fb9bd3f1b69c98d2e236a65773db0 Mon Sep 17 00:00:00 2001 From: Lilian BRETON Date: Mon, 21 Nov 2022 16:19:14 +0100 Subject: [PATCH] Add 'Dockerfile' --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e2d9f91 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM reactnativecommunity/react-native-android:2.1 +# set locale to utf8 for fastlane +ENV LANG C.UTF-8 +ENV LC_ALL C.UTF-8 +# install bundler +RUN gem install bundler + + +all: build +VERSION = 2.1 + + +build: + docker build --tag itporbit/react-native-android:${VERSION} . + + +push: build + docker push itporbit/react-native-android:${VERSION} + git tag react-native-android/${VERSION} HEAD + git push --tags + + +run: build + docker run --rm -ti itporbit/react-native-android:${VERSION} \ No newline at end of file