Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.