發表文章

目前顯示的是 2月 16, 2019的文章

Military academies in Russia

圖片
This article includes a list of references, but its sources remain unclear because it has insufficient inline citations . Please help to improve this article by introducing more precise citations. ( August 2011 ) (Learn how and when to remove this template message) Female cadets on parade. The Moscow Suvorov Military School Russia has a number of military academies of different specialties. This article primarily lists institutions of the Armed Forces of the Russian Federation rather than those of the Soviet Armed Forces. Russian institutions called "academy" are post-graduate professional military schools for experienced, commissioned officers who have the equivalent of a bachelor's degree. Upon graduation, officers receive the equivalent of a master's degree and, if trained in military leadership are appointed as battalion commanders or higher from Lt. Colonel and up. Graduates with non-command training are appointed to various staff positio...

Local nodejs module not being found by docker

圖片
0 I have a nodejs module called my-common that contains a couple of js files. These js files export functions that are used throughout a lot of other modules. My other module (called demo) contains a dependency to the the common module like this: "dependencies": { "my-common": "file:../my-common/", } When I goto the demo directory and run npm start it works fine. I then build a docker image using the following Dockerfile: FROM node:8 ENV NODE_ENV=production WORKDIR /usr/src/app COPY package*.json ./ RUN npm install --only=production COPY . . EXPOSE 3000 CMD [ "npm", "start" ] When I start the image I get an error that my-common can not be found. I'm guessing that the my-common module isn't being copied into the node_modules directory...