-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from x98zy/0.3.2.11
change compose
- Loading branch information
Showing
4 changed files
with
47 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,23 @@ | ||
FROM python:3.7-alpine3.15 | ||
LABEL maintainer="vulfocus" version="0.3.2.11" description="Vulfocus for Docker" | ||
|
||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories | ||
RUN apk add gcc g++ libzip-dev jpeg-dev libffi-dev freetype-dev | ||
|
||
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