Skip to content

Commit

Permalink
Shrink recommendationservice base image to python:3.12.8-alpine (#2832)
Browse files Browse the repository at this point in the history
* Shrink recommendationservice base image to python:3.12.8-alpine

* Remove comment in Dockerfile

* Remove comment in Dockerfile

* Remove extra dependencies Dockerfile
  • Loading branch information
NimJay authored Dec 20, 2024
1 parent d357627 commit 7c430c0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/recommendationservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.12.6-slim@sha256:ad48727987b259854d52241fac3bc633574364867b8e20aec305e6e7f4028b26 AS base
FROM python:3.12.8-alpine@sha256:f92e36f6569658ba9501e2e1e3ca780d61faea8e84edd990a0ed70d0ca8add4a AS base

FROM base AS builder

RUN apt-get -qq update \
&& apt-get install -y --no-install-recommends \
wget g++ \
&& rm -rf /var/lib/apt/lists/*
RUN apk update \
&& apk add --no-cache \
wget \
g++ \
&& rm -rf /var/cache/apk/*

# get packages
COPY requirements.txt .
Expand Down

0 comments on commit 7c430c0

Please sign in to comment.