瀏覽代碼

update dockerfile base

kevin 2 年之前
父節點
當前提交
d633a02e7e
共有 2 個文件被更改,包括 1 次插入18 次删除
  1. 0 18
      Dockerfile.base
  2. 1 0
      build_docker_base.sh

+ 0 - 18
Dockerfile.base

@@ -2,24 +2,6 @@ FROM python:3.10-slim-bullseye
 
 WORKDIR /usr/src/app
 
-RUN apt-get -y update && \
-    apt-get -y upgrade && apt-get install --no-install-recommends -y --fix-missing \
-    build-essential \
-    cmake \
-    gfortran \
-    git \
-    wget \
-    curl \
-    pkg-config \
-    python3-dev \
-    software-properties-common \
-    zip \
-    nmap \
-    net-tools \
-    vim-tiny \
-    nano \
-    && apt-get clean && rm -rf /tmp/* /var/tmp/*
-
 COPY requirements.txt .
 
 RUN pip install -r requirements.txt

+ 1 - 0
build_docker_base.sh

@@ -1,3 +1,4 @@
 #!/bin/bash
 
+docker pull python:3.10-slim-bullseye
 docker build -f Dockerfile.base --no-cache -t chatbot_base .