refactor(Dockerfile): replace ENTRYPOINT with CMD to allow for easier command override
This commit is contained in:
parent
2d0fed0f2e
commit
cd2be6a2d3
|
@ -1,7 +1,7 @@
|
|||
FROM python:3.9-slim
|
||||
|
||||
# Install Sublist3r
|
||||
RUN apt-get update && apt-get install -y git
|
||||
RUN apt-get update && apt-get install -y git
|
||||
RUN git clone https://github.com/aboul3la/Sublist3r.git
|
||||
RUN pip install -r Sublist3r/requirements.txt
|
||||
|
||||
|
@ -9,4 +9,4 @@ RUN pip install -r Sublist3r/requirements.txt
|
|||
EXPOSE 80
|
||||
|
||||
# Run Sublist3r when the container launches
|
||||
ENTRYPOINT [ "sh", "-c", "python", "Sublist3r/sublist3r.py" ]
|
||||
CMD [ "python", "Sublist3r/sublist3r.py" ]
|
||||
|
|
Loading…
Reference in New Issue