Browse Source

alpine docker

master
Mayank 5 years ago
parent
commit
b8d07b7baa
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 11
      Dockerfile

11
Dockerfile

@ -1,11 +1,10 @@
# specify the node base image with your desired version node:<version>
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" ]
Loading…
Cancel
Save