fix pynode dockerfile
This commit is contained in:
@ -1,20 +1,14 @@
|
|||||||
# dobromirpopov/pynode
|
# dobromirpopov/pynode
|
||||||
FROM python:slim
|
FROM python:slim
|
||||||
|
|
||||||
# System dependencies
|
# System dependencies and Node.js/npm installation
|
||||||
RUN apt-get update && apt-get install -y git && apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y git curl nodejs npm \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Upgrade pip
|
# Upgrade pip
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
|
|
||||||
# Install some basic utilities
|
# Verify installations
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN node --version && npm --version
|
||||||
curl \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Install Node.js and npm
|
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
|
|
||||||
RUN apt-get install -y nodejs
|
|
||||||
|
|
||||||
RUN node --version
|
|
||||||
RUN npm --version
|
|
||||||
|
Reference in New Issue
Block a user