Skip to content

Instantly share code, notes, and snippets.

@ForsakenHarmony
Created July 7, 2017 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ForsakenHarmony/7efb3659dac985a90598b869b07c7e46 to your computer and use it in GitHub Desktop.
Save ForsakenHarmony/7efb3659dac985a90598b869b07c7e46 to your computer and use it in GitHub Desktop.
FROM node:8-alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN npm i
COPY . ./
RUN apk update
RUN apk add --no-cache libstdc++ \
&& apk add --no-cache --virtual .build-deps \
binutils-gold \
curl \
g++ \
gcc \
gnupg \
libgcc \
linux-headers \
make \
python
RUN npm rebuild node-sass --force
ENV NODE_ENV production
RUN npm run build
EXPOSE 3000
CMD [ "npm" ,"start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment