forked from fofapro/vulfocus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xuzhiyi
committed
Mar 9, 2022
1 parent
b7ddd5f
commit 90edbe2
Showing
4 changed files
with
45 additions
and
10 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM python:3 | ||
LABEL maintainer="vulfocus" version="0.3.2.11" description="Vulfocus for Docker" | ||
|
||
RUN mkdir /vulfocus-api/ | ||
WORKDIR /vulfocus-api/ | ||
ADD . /vulfocus-api/ | ||
|
||
ENV VUL_IP="" | ||
ENV EMAIL_HOST="" | ||
ENV EMAIL_HOST_USER="" | ||
ENV EMAIL_HOST_PASSWORD="" | ||
ENV DOCKER_URL="unix://var/run/docker.sock" | ||
|
||
|
||
RUN python3 -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple | ||
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package -r requirements.txt | ||
|
||
EXPOSE 8000 | ||
|
||
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"] | ||
|
Binary file not shown.
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
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