Skip to content

Instantly share code, notes, and snippets.

@javilobo8
Created July 14, 2017 08:08
Show Gist options
  • Save javilobo8/41d840779915d5e12389e4f5a89114ab to your computer and use it in GitHub Desktop.
Save javilobo8/41d840779915d5e12389e4f5a89114ab to your computer and use it in GitHub Desktop.
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