-
-
Save ForsakenHarmony/7efb3659dac985a90598b869b07c7e46 to your computer and use it in GitHub Desktop.
This file contains 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
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