From b8d07b7baaef895922409bd1cd9171b31f526fdc Mon Sep 17 00:00:00 2001 From: Mayank Date: Thu, 21 May 2020 23:11:31 +0530 Subject: [PATCH] alpine docker --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index dd1b95f..17befbd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,10 @@ # specify the node base image with your desired version node: -FROM node:8-slim +FROM node:12.16.3-alpine # install tools -RUN apt-get update --no-install-recommends \ - && apt-get install -y --no-install-recommends vim \ - && apt-get install -y --no-install-recommends rsync \ - && rm -rf /var/lib/apt/lists/* +RUN apk --no-cache add --virtual native-deps \ + g++ gcc libgcc libstdc++ linux-headers autoconf automake make nasm python git && \ + npm install --quiet node-gyp -g # Create app directory WORKDIR /usr/src/app @@ -25,4 +24,4 @@ COPY . . RUN mkdir -p /root/.lnd EXPOSE 3006 -CMD [ "npm", "start" ] +CMD [ "npm", "start" ] \ No newline at end of file