Created
July 14, 2017 08:08
-
-
Save javilobo8/41d840779915d5e12389e4f5a89114ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:6 | |
WORKDIR /tmp | |
COPY . . | |
# RUN npm install -g execSync | |
RUN mkdir -p /opt/care/app \ | |
&& npm install --production | |
RUN npm run deploy:pre \ | |
&& mv dist/* /opt/care/app \ | |
&& apt-get autoremove --purge -q -y \ | |
&& apt-get clean -q \ | |
&& cd /opt/care/app \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.npm /root/.node-gyp | |
WORKDIR /opt/care/app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment