|
|
|
@ -12,6 +12,7 @@ COPY package.json yarn.lock ./
|
|
|
|
RUN npm config set registry https://registry.npm.taobao.org
|
|
|
|
RUN npm config set registry https://registry.npm.taobao.org
|
|
|
|
#RUN npm config set unsafe-perm true
|
|
|
|
#RUN npm config set unsafe-perm true
|
|
|
|
# COPY ./patches patches
|
|
|
|
# COPY ./patches patches
|
|
|
|
|
|
|
|
RUN npm set strict-ssl false
|
|
|
|
RUN npm install --production;
|
|
|
|
RUN npm install --production;
|
|
|
|
RUN npm run postinstall;
|
|
|
|
RUN npm run postinstall;
|
|
|
|
|
|
|
|
|
|
|
|
@ -26,7 +27,7 @@ COPY production.env production.env
|
|
|
|
COPY production.env development.env
|
|
|
|
COPY production.env development.env
|
|
|
|
# Run the container under "node" user by default
|
|
|
|
# Run the container under "node" user by default
|
|
|
|
RUN mkdir apk
|
|
|
|
RUN mkdir apk
|
|
|
|
COPY ./apk/app.apk apk/app.apk
|
|
|
|
COPY ./src/apk/app.apk apk/app.apk
|
|
|
|
USER node
|
|
|
|
USER node
|
|
|
|
|
|
|
|
|
|
|
|
CMD [ "node", "main.js" ]
|
|
|
|
CMD [ "node", "main.js" ]
|
|
|
|
|