Delete Dockerfile
Browse files- Dockerfile +0 -53
Dockerfile
DELETED
|
@@ -1,53 +0,0 @@
|
|
| 1 |
-
# """
|
| 2 |
-
# The MIT License (MIT)
|
| 3 |
-
|
| 4 |
-
# Copyright (c) 2023 pkjmesra
|
| 5 |
-
|
| 6 |
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 7 |
-
# of this software and associated documentation files (the "Software"), to deal
|
| 8 |
-
# in the Software without restriction, including without limitation the rights
|
| 9 |
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 10 |
-
# copies of the Software, and to permit persons to whom the Software is
|
| 11 |
-
# furnished to do so, subject to the following conditions:
|
| 12 |
-
|
| 13 |
-
# The above copyright notice and this permission notice shall be included in all
|
| 14 |
-
# copies or substantial portions of the Software.
|
| 15 |
-
|
| 16 |
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 17 |
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 18 |
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 19 |
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 20 |
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 21 |
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 22 |
-
# SOFTWARE.
|
| 23 |
-
|
| 24 |
-
# """
|
| 25 |
-
# docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag pkjmesra/pkscreener:latest .
|
| 26 |
-
# docker buildx build --load --platform linux/arm64/v8,linux/amd64 --tag pkjmesra/pkscreener:latest . --no-cache
|
| 27 |
-
# docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag pkjmesra/pkscreener:latest . --no-cache
|
| 28 |
-
|
| 29 |
-
FROM pkjmesra/pkscreener:base as base
|
| 30 |
-
ENV PYTHONUNBUFFERED 1
|
| 31 |
-
WORKDIR /
|
| 32 |
-
RUN rm -rf /PKScreener-main main.zip* && \
|
| 33 |
-
curl -JL https://github.com/pkjmesra/PKScreener/archive/refs/heads/main.zip -o main.zip && \
|
| 34 |
-
unzip main.zip && \
|
| 35 |
-
rm -rf main.zip*
|
| 36 |
-
WORKDIR /PKScreener-main
|
| 37 |
-
COPY requirements.txt .
|
| 38 |
-
RUN pip3 install --upgrade pip && \
|
| 39 |
-
pip3 uninstall pkscreener PKNSETools PKDevTools -y && \
|
| 40 |
-
pip3 install --no-cache-dir -r requirements.txt && \
|
| 41 |
-
pip3 install . && \
|
| 42 |
-
mv /PKScreener-main/pkscreener/pkscreenercli.py /pkscreenercli.py && \
|
| 43 |
-
rm -rf /PKScreener-main && \
|
| 44 |
-
mkdir -p /PKScreener-main/pkscreener/ && \
|
| 45 |
-
mv /pkscreenercli.py /PKScreener-main/pkscreener/pkscreenercli.py
|
| 46 |
-
|
| 47 |
-
ENV TERM=xterm
|
| 48 |
-
COPY cve-fixes.txt .
|
| 49 |
-
RUN pip3 install -r cve-fixes.txt
|
| 50 |
-
ENV PKSCREENER_DOCKER=1
|
| 51 |
-
ENTRYPOINT ["python3","pkscreener/pkscreenercli.py"]
|
| 52 |
-
# Run with
|
| 53 |
-
# docker run -it pkjmesra/pkscreener:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|