Skip to content

Instantly share code, notes, and snippets.

@daliborgogic
Last active November 19, 2017 12:20
Show Gist options
  • Save daliborgogic/b10b3efda6b33aa71cb83735e585e08a to your computer and use it in GitHub Desktop.
Save daliborgogic/b10b3efda6b33aa71cb83735e585e08a to your computer and use it in GitHub Desktop.
Dockerfile: 894MB
# REPOSITORY TAG IMAGE ID CREATED SIZE
# up latest 32f4569db5bc 54 seconds ago 894MB
FROM node:9.2.0-slim
RUN apt-get update && apt-get install -yq \
gconf-service \
libasound2 \
libatk1.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgcc1 \
libgconf-2-4 \
libgdk-pixbuf2.0-0 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxtst6 \
ca-certificates \
fonts-liberation \
libappindicator1 \
libnss3 \
lsb-release \
xdg-utils \
wget
ENV NODE_ENV production
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