Skip to content

Instantly share code, notes, and snippets.

@dragon788 dragon788/Dockerfile forked from mniehe/Dockerfile
Created Oct 21, 2017

What would you like to do?
Alpine dockerfile with build essentials
FROM node:7.8-alpine
LABEL maintainer "Mark Niehe<>"
# Install all build dependencies
# Add bash for debugging purposes
RUN apk update \
&& apk add --virtual build-dependencies \
build-base \
gcc \
wget \
git \
&& apk add \
COPY package.json .
# Install all npm dependencies
# Cleanup
RUN npm install --silent --production \
&& apk del build-dependencies \
&& rm -rf /var/cache/apk/*
# Copy entire app over
COPY . /app
CMD ["node", "index.js"]
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.