Update Dockerfile

- Remove redundant instructions
  - Don't copy local .data to the image
This commit is contained in:
Arkadii Yakovets 2024-09-09 19:03:04 -07:00
parent 0a6171bde7
commit ba0a30cc7e
No known key found for this signature in database
GPG Key ID: 7350E7F17DFE6846
1 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,6 @@
FROM python:3.11.10-slim FROM python:3.11.10-slim
RUN mkdir -p .data/results && \ RUN apt-get update && \
apt-get update && \
apt-get install -y gcc libssl-dev && \ apt-get install -y gcc libssl-dev && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
@ -9,11 +8,10 @@ RUN mkdir -p .data/results && \
WORKDIR /usr/src/owaspnettacker WORKDIR /usr/src/owaspnettacker
COPY .data .data
COPY nettacker nettacker COPY nettacker nettacker
COPY nettacker.py poetry.lock pyproject.toml README.md ./ COPY nettacker.py poetry.lock pyproject.toml README.md ./
RUN poetry install --no-root --without dev --without test RUN poetry install --no-cache --no-root --without dev --without test
ENV docker_env=true ENV docker_env=true