Skip to content

Commit 7b8f313

Browse files
committed
Clean up Dockerfile.alpine
- Remove outdated commented-out apk upgrade instructions - Add a commented line for potential pip upgrade
1 parent ec20781 commit 7b8f313

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Dockerfile.alpine

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
FROM python:3.13-alpine@sha256:e5fa639e49b85986c4481e28faa2564b45aa8021413f31026c3856e5911618b1 AS alpine
44

55
LABEL project="Python Insecure App" service="FastAPI" stage="alpine"
6+
# RUN python3 -m pip install --upgrade pip~=25.3
67
ENV NONROOT=nonroot \
78
LANG=C.UTF-8 \
89
LC_ALL=C.UTF-8 \
@@ -16,10 +17,6 @@ COPY --chown=$NONROOT ./requirements/base.txt requirements/base.txt
1617
COPY --chown=$NONROOT ./requirements/common.txt requirements/common.txt
1718
RUN addgroup -S $NONROOT \
1819
&& adduser -S $NONROOT -G $NONROOT \
19-
# && apk update \
20-
# && apk upgrade \
21-
# sqlite-libs \
22-
# && rm -rf /var/cache/apk \
2320
&& chown $NONROOT:$NONROOT $WORKDIR \
2421
&& python3 -m venv $VIRTUAL_ENV \
2522
&& chown -R $NONROOT:$NONROOT $VIRTUAL_ENV \

0 commit comments

Comments
 (0)