Files
react-native/.circleci/Dockerfiles/Dockerfile.android
T
Nicola Corti 6f94cd272f Remove instructions from Dockerfile.android that are BUCK related. (#36958)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36958

As we don't invoke `buck` anymore inside `Dockerfile.android` anymore,
those instructions can be removed.

Changelog:
[Internal] [Changed] - Remove instructions from `Dockerfile.android` that are BUCK related

Reviewed By: sammy-SC, arushikesarwani94

Differential Revision: D45086054

fbshipit-source-id: 5ed5e353f43b11784a4dcb930148ab264d4dd063
2023-04-18 11:54:36 -07:00

41 lines
1.5 KiB
Docker

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# This image builds upon the React Native Community Android image:
# https://github.com/react-native-community/docker-android
#
# The base image is expected to remain relatively stable, and only
# needs to be updated when major dependencies such as the Android
# SDK or NDK are updated.
#
# In this Android Test image, we download the latest dependencies
# and build a Android application that can be used to run the
# tests specified in the scripts/ directory.
#
FROM reactnativecommunity/react-native-android:8.0
LABEL Description="React Native Android Test Image"
LABEL maintainer="Meta Open Source <opensource@meta.com>"
# set default environment variables
ENV GRADLE_OPTS="-Dorg.gradle.daemon=false -Dfile.encoding=utf-8 -Dorg.gradle.jvmargs=\"-Xmx512m -XX:+HeapDumpOnOutOfMemoryError\""
ENV KOTLIN_HOME="packages/react-native/third-party/kotlin"
ADD packages/react-native/Libraries /app/packages/react-native/Libraries
ADD packages/react-native/ReactAndroid /app/packages/react-native/ReactAndroid
ADD packages/react-native/ReactCommon /app/packages/react-native/ReactCommon
ADD packages/react-native/React /app/packages/react-native/React
ADD packages/react-native-codegen /app/packages/react-native-codegen
ADD tools /app/tools
ADD scripts /app/scripts
WORKDIR /app
ADD . /app
RUN yarn
RUN ./gradlew :packages:react-native:ReactAndroid:assembleDebug