forked from mtianyan/FunpySpiderSearchEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 724 Bytes
/
Dockerfile
File metadata and controls
20 lines (15 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.7
ENV PYTHONUNBUFFERED 1
MAINTAINER mtianyan <mtianyan@qq.com>
ADD ./requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt update && apt -y install curl dirmngr ca-certificates\
&& curl -sL https://deb.nodesource.com/setup_12.x | bash -\
&& apt update\
&& apt -y install gcc g++ make\
&& apt -y install nodejs\
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -\
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list\
&& apt update && apt install yarn
WORKDIR /PROJECT_ROOT