Remove not needed apt-get update in Dockerfile

There's no need to wait and waste the time and bandwidth to wait for `apt-get update` for `pip3 install` ;)
This commit is contained in:
Peter Dave Hello 2024-08-27 02:37:23 +08:00 committed by GitHub
parent 9e111a334b
commit a5dda7ae91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,8 +7,7 @@
FROM python:3.12-slim-bullseye as build FROM python:3.12-slim-bullseye as build
WORKDIR /sherlock WORKDIR /sherlock
RUN apt-get update \ RUN pip3 install --no-cache-dir --upgrade pip
pip3 install --no-cache-dir --upgrade pip
FROM python:3.12-slim-bullseye FROM python:3.12-slim-bullseye
WORKDIR /sherlock WORKDIR /sherlock