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. 9
      Dockerfile

9
Dockerfile

@ -1,11 +1,10 @@
# specify the node base image with your desired version node:<version> # specify the node base image with your desired version node:<version>
FROM node:8-slim FROM node:12.16.3-alpine
# install tools # install tools
RUN apt-get update --no-install-recommends \ RUN apk --no-cache add --virtual native-deps \
&& apt-get install -y --no-install-recommends vim \ g++ gcc libgcc libstdc++ linux-headers autoconf automake make nasm python git && \
&& apt-get install -y --no-install-recommends rsync \ npm install --quiet node-gyp -g
&& rm -rf /var/lib/apt/lists/*
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app

Loading…
Cancel
Save