Last active
November 19, 2017 12:23
-
-
Save daliborgogic/e5028233959e734ce7a90d87b2c08f7d to your computer and use it in GitHub Desktop.
Dockerfile: 623MB
This file contains hidden or 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
# REPOSITORY TAG IMAGE ID CREATED SIZE | |
# uptime latest 77f4f1980edc 8 hours ago 623MB | |
FROM node:9.2.0-slim | |
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true | |
ENV NODE_ENV production | |
# Install latest chrome dev package. | |
RUN apt-get update && apt-get install -y wget --no-install-recommends \ | |
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ | |
&& apt-get update \ | |
&& apt-get install -y google-chrome-unstable \ | |
--no-install-recommends \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& apt-get purge --auto-remove -y curl \ | |
&& rm -rf /src/*.deb | |
ARG CACHEBUST=1 | |
ADD index.js package.json package-lock.json / | |
RUN npm i --production | |
FROM mhart/alpine-node:base-9.2.0 | |
WORKDIR / | |
COPY --from=0 / . | |
COPY . . | |
CMD ["node_modules/.bin/micro", "index.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment