Update 'Dockerfile'
continuous-integration/drone/push Build is failing Details

testDocker
Lilian BRETON 2 years ago
parent df8e3aae07
commit a2d2922068

@ -1,24 +1,13 @@
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
FROM node:17-alpine
WORKDIR /app
all: build
VERSION = 2.1
COPY pakage.json .
RUN npm install
build:
docker build --tag itporbit/react-native-android:${VERSION} .
COPY . .
EXPOSE 3000
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}
CMD ["npm", "start"]
Loading…
Cancel
Save