forked from rnplay/react-native-packager-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 694 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM node:latest
RUN apt-get update && \
apt-get -y install software-properties-common git-core build-essential automake unzip python-dev python-setuptools && \
rm -rf /var/lib/apt/lists/*
RUN git clone -b v3.8.0 https://github.com/facebook/watchman.git /tmp/watchman
WORKDIR /tmp/watchman
RUN ./autogen.sh
RUN ./configure
RUN make
RUN make install
ADD build-package.json /tmp/package.json
RUN cd /tmp && npm install || true
RUN mkdir -p /app && cp -a /tmp/node_modules /app/
RUN rm -rf /tmp/* /var/tmp/*
RUN mkdir -p /usr/local/var/run/watchman/
ADD babelrc /app/.babelrc
EXPOSE 8081
WORKDIR /app
CMD ["node", "node_modules/react-native/packager/packager.js", "--port", "8081"]