-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (41 loc) · 1.5 KB
/
Dockerfile
File metadata and controls
54 lines (41 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ghcr.io/allennliu/node-base:16.0.0-slim
ENV NODE_SOURCE /usr/src
COPY . $NODE_SOURCE
WORKDIR $NODE_SOURCE
RUN apt-get update && \
apt-get install -y gcc g++ make \
libncurses5-dev \
libncursesw5-dev \
ncurses-dev && \
cd tools && \
tar zxvf vim74.tar.gz && \
cd vim74 && \
./configure --prefix=/usr \
--with-features=huge \
--disable-selinux \
--enable-pythoninterp \
--enable-cscope \
--enable-multibyte && \
make && make install && \
ln -s /usr/local/bin/vim /usr/local/bin/vi
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl dnsutils git libhiredis-dev node-gyp \
ssh sshpass plink telnet unzip \
python3 \
python3-dev \
build-essential \
python3-setuptools \
python3-pip \
default-libmysqlclient-dev \
libmariadbclient-dev \
unixodbc unixodbc-dev
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install -r requirements.txt
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install -r requirements_external.txt || true
RUN echo 'alias vi="vim"' >> ~/.bashrc
EXPOSE 8000 22
USER root
ENV PYTHONIOENCODING utf-8
CMD ["bash", "service.sh", "--prod"]