Skip to content

Commit

Permalink
Merge pull request #890 from Tencent/bugfix/update-server-dockerfile
Browse files Browse the repository at this point in the history
🐛 修复Dockerfile配置
  • Loading branch information
Lingghh authored Aug 10, 2023
2 parents fea00d8 + 403c653 commit eb0613a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 30 deletions.
6 changes: 0 additions & 6 deletions server/projects/analysis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FROM python:3.7-slim-bullseye

# RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye main non-free contrib' > /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib' >> /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian-security bullseye-security main non-free contrib' >> /etc/apt/sources.list

ARG EXTRA_TOOLS="gnupg curl wget jq net-tools procps default-libmysqlclient-dev locales inotify-tools gcc telnet iputils-ping vim openssh-client"

RUN set -ex && cd / \
Expand All @@ -25,6 +20,5 @@ WORKDIR /var/www/django/codedog
COPY . .

RUN mkdir -p log/ && \
mkdir ~/.pip/ && echo "[global]\nindex-url = https://mirrors.cloud.tencent.com/pypi/simple" >> ~/.pip/pip.conf && \
pip install -U setuptools pip && \
pip install -r requirements.txt
6 changes: 0 additions & 6 deletions server/projects/file/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FROM python:3.7-slim-bullseye

# RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye main non-free contrib' > /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib' >> /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian-security bullseye-security main non-free contrib' >> /etc/apt/sources.list

ARG EXTRA_TOOLS="gnupg curl wget jq net-tools procps default-libmysqlclient-dev locales inotify-tools gcc telnet iputils-ping vim openssh-client"

RUN set -ex && cd / \
Expand All @@ -25,6 +20,5 @@ WORKDIR /var/www/django/codedog
COPY . .

RUN mkdir -p log/ && \
mkdir ~/.pip/ && echo "[global]\nindex-url = https://mirrors.cloud.tencent.com/pypi/simple" >> ~/.pip/pip.conf && \
pip install -U setuptools pip && \
pip install -r requirements.txt
6 changes: 0 additions & 6 deletions server/projects/login/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FROM python:3.7-slim-bullseye

# RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye main non-free contrib' > /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib' >> /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian-security bullseye-security main non-free contrib' >> /etc/apt/sources.list

ARG EXTRA_TOOLS="gnupg curl wget jq net-tools procps default-libmysqlclient-dev locales inotify-tools gcc telnet iputils-ping vim openssh-client"

RUN set -ex && cd / \
Expand All @@ -25,6 +20,5 @@ WORKDIR /var/www/django/codedog
COPY . .

RUN mkdir -p log/ && \
mkdir ~/.pip/ && echo "[global]\nindex-url = https://mirrors.cloud.tencent.com/pypi/simple" >> ~/.pip/pip.conf && \
pip install -U setuptools pip && \
pip install -r requirements.txt
6 changes: 0 additions & 6 deletions server/projects/main/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FROM python:3.7-slim-bullseye

# RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye main non-free contrib' > /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib' >> /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian-security bullseye-security main non-free contrib' >> /etc/apt/sources.list

ARG EXTRA_TOOLS="gnupg curl wget jq net-tools procps default-libmysqlclient-dev locales inotify-tools gcc telnet iputils-ping vim openssh-client"

RUN set -ex && cd / \
Expand All @@ -25,6 +20,5 @@ WORKDIR /var/www/django/codedog
COPY . .

RUN mkdir -p log/ && \
mkdir ~/.pip/ && echo "[global]\nindex-url = https://mirrors.cloud.tencent.com/pypi/simple" >> ~/.pip/pip.conf && \
pip install -U setuptools pip && \
pip install -r requirements.txt
6 changes: 0 additions & 6 deletions server/projects/scmproxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FROM python:3.7-slim-bullseye

# RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye main non-free contrib' > /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib' >> /etc/apt/sources.list && \
# echo 'deb http://mirrors.tencent.com/debian-security bullseye-security main non-free contrib' >> /etc/apt/sources.list

ARG EXTRA_TOOLS="gnupg curl wget jq net-tools procps default-libmysqlclient-dev locales inotify-tools gcc git subversion telnet iputils-ping vim openssh-client"

RUN set -ex && cd / \
Expand All @@ -25,6 +20,5 @@ WORKDIR /var/www/django/codedog
COPY . .

RUN mkdir -p log/ && \
mkdir ~/.pip/ && echo "[global]\nindex-url = https://mirrors.cloud.tencent.com/pypi/simple" >> ~/.pip/pip.conf && \
pip install -U setuptools pip && \
pip install -r requirements.txt

0 comments on commit eb0613a

Please sign in to comment.