forked from Amka78/owl-of-athena
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (17 loc) · 845 Bytes
/
Dockerfile
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
FROM node:12.4.0
LABEL maintainer="Bysr <[email protected]>"
EXPOSE 19000
EXPOSE 19001
EXPOSE 19002
ENV APP_SOURCE_DIR=/usr/local/src/owl-of-minerva
COPY --chown=node package-lock.json $APP_SOURCE_DIR/
COPY --chown=node package.json $APP_SOURCE_DIR/
# Because Docker Compose uses a named volume for node_modules and named volumes are owned
# by root by default, we have to initially create node_modules here with correct owner.
# Without this NPM cannot write packages into node_modules later, when running in a container.
RUN mkdir "$APP_SOURCE_DIR/node_modules" && chown node "$APP_SOURCE_DIR/node_modules"
RUN apt-get update && apt-get install bash && apt-get install android-tools-adb -y
WORKDIR $APP_SOURCE_DIR
COPY --chown=node . $APP_SOURCE_DIR
RUN npm install -g expo-cli --unsafe-perm
CMD ["npm", "start"]