merge pull request #16 from Hunter-XDD/patch-1
make a lighter docker image of python-nodejs
This commit is contained in:
commit
62ed5003be
21
Dockerfile
21
Dockerfile
@ -1,19 +1,8 @@
|
|||||||
FROM python:3.9.7-slim-buster
|
FROM nikolaik/python-nodejs:python3.10-nodejs17
|
||||||
|
RUN apt-get update && apt-get upgrade -y
|
||||||
RUN apt-get update && apt-get upgrade -y && \
|
RUN apt-get install ffmpeg -y
|
||||||
apt-get install -y nodejs \
|
|
||||||
npm
|
|
||||||
RUN apt-get install npm -y
|
|
||||||
RUN apt-get install git curl python3-pip ffmpeg -y
|
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
|
||||||
RUN apt-get install -y nodejs
|
|
||||||
RUN npm install -g npm@7.22.0
|
|
||||||
RUN npm i -g npm
|
|
||||||
|
|
||||||
COPY . /py
|
COPY . /py
|
||||||
WORKDIR /py
|
WORKDIR /py
|
||||||
|
RUN pip3 install -U pip
|
||||||
RUN pip3 install --upgrade pip
|
RUN pip3 install -U -r requirements.txt
|
||||||
RUN pip3 install -r requirements.txt
|
|
||||||
|
|
||||||
CMD python3 -m program
|
CMD python3 -m program
|
||||||
|
Loading…
Reference in New Issue
Block a user