Skip to content

Commit

Permalink
Add APT config to base image (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Sep 30, 2024
2 parents 25679a9 + ea759fa commit 996e004
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Tekst-API/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

FROM python:3.10-slim-bullseye AS base

COPY --chmod=0644 <<"EOF" /etc/apt/apt.conf
APT::Get::Assume-Yes "true";
APT::Install-Recommends "0";
APT::Install-Suggests "0";
APT::Sandbox::User "root";
EOF

ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \
PYTHONUNBUFFERED=1 \
Expand Down Expand Up @@ -69,8 +76,7 @@ ENV FASTAPI_ENV=production

# install needed OS packages
RUN apt-get update && \
apt-get install --no-install-recommends -y \
curl && \
apt-get install curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 996e004

Please sign in to comment.