mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-05-24 02:02:33 -04:00
Reduce Docker image size by improving apk commands (#1205)
Replace redundant apk flags `-U` and `--update` with `--no-cache` to prevent package index caching. This change unifies all apk package commands for better maintainability and smaller image size.
This commit is contained in:
parent
88e2dda151
commit
a15190e976
@ -1,6 +1,6 @@
|
|||||||
FROM python:3.12.6-alpine3.20 AS builder
|
FROM python:3.12.6-alpine3.20 AS builder
|
||||||
|
|
||||||
RUN apk --update add \
|
RUN apk --no-cache add \
|
||||||
build-base \
|
build-base \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
@ -14,11 +14,11 @@ RUN pip install --prefix /install --no-warn-script-location --no-cache-dir -r re
|
|||||||
|
|
||||||
FROM python:3.12.6-alpine3.20
|
FROM python:3.12.6-alpine3.20
|
||||||
|
|
||||||
RUN apk add --update --no-cache tor curl openrc libstdc++
|
RUN apk add --no-cache tor curl openrc libstdc++
|
||||||
# git go //for obfs4proxy
|
# git go //for obfs4proxy
|
||||||
# libcurl4-openssl-dev
|
# libcurl4-openssl-dev
|
||||||
|
|
||||||
RUN apk -U upgrade
|
RUN apk --no-cache upgrade
|
||||||
|
|
||||||
# uncomment to build obfs4proxy
|
# uncomment to build obfs4proxy
|
||||||
# RUN git clone https://gitlab.com/yawning/obfs4.git
|
# RUN git clone https://gitlab.com/yawning/obfs4.git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user