-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(query): Unpinned Package Version in Apk Add (#5181)
* fix issue * add suport for -t
- Loading branch information
1 parent
f3a0103
commit 2e35f77
Showing
2 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
assets/queries/dockerfile/unpinned_package_version_in_apk_add/test/negative2.dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM alpine:3.4 | ||
RUN apk add --update py-pip=7.1.2-r0 | ||
RUN sudo pip install --upgrade pip | ||
COPY requirements.txt /usr/src/app/ | ||
RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt | ||
COPY app.py /usr/src/app/ | ||
COPY templates/index.html /usr/src/app/templates/ | ||
EXPOSE 5000 | ||
CMD ["python", "/usr/src/app/app.py"] | ||
|
||
FROM alpine:3.1 | ||
RUN apk add --virtual .test py-pip=7.1.2-r0 | ||
RUN ["apk", "add", "--virtual .test", "py-pip=7.1.2-r0"] | ||
RUN sudo pip install --upgrade pip | ||
COPY requirements.txt /usr/src/app/ | ||
RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt | ||
COPY app.py /usr/src/app/ | ||
COPY templates/index.html /usr/src/app/templates/ | ||
EXPOSE 5000 | ||
CMD ["python", "/usr/src/app/app.py"] |