first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
17
base/django/1.11.4/Dockerfile
Normal file
17
base/django/1.11.4/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:3.5
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /bin/wait-for-it.sh
|
||||
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
RUN mkdir /app \
|
||||
&& pip install -U "django==1.11.4" "dj-database-url==0.5.0" "psycopg2==2.8.5" \
|
||||
&& chmod +x /docker-entrypoint.sh /bin/wait-for-it.sh
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["/docker-entrypoint.sh"]
|
5
base/django/1.11.4/docker-entrypoint.sh
Normal file
5
base/django/1.11.4/docker-entrypoint.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
/bin/wait-for-it.sh db:5432 -t 60 -- echo "postgres is up..."
|
||||
|
||||
python app.py migrate && python app.py runserver 0.0.0.0:8000
|
10
base/django/2.2.3/Dockerfile
Normal file
10
base/django/2.2.3/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM python:3.6
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /usr/local/bin/wait-for-it.sh
|
||||
|
||||
RUN set -ex \
|
||||
&& pip install -U pip \
|
||||
&& pip install "django==2.2.3" "psycopg2==2.8.3" \
|
||||
&& chmod +x /usr/local/bin/wait-for-it.sh
|
22
base/django/3.0.3/Dockerfile
Normal file
22
base/django/3.0.3/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM python:3.6
|
||||
|
||||
ENV ORACLE_HOME=/tmp/instantclient_19_6 LD_LIBRARY_PATH=/tmp/instantclient_19_6 VERSION=19.6.0.0.0 ARCH=x86_64
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update && apt-get upgrade -y \
|
||||
&& apt-get install gcc g++ make binutils libproj-dev gdal-bin libaio1 libaio-dev unzip -y
|
||||
|
||||
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /usr/local/bin/wait-for-it.sh
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /tmp/ \
|
||||
&& wget download.oracle.com/otn_software/linux/instantclient/19600/instantclient-basiclite-linux.x64-19.6.0.0.0dbru.zip \
|
||||
&& wget download.oracle.com/otn_software/linux/instantclient/19600/instantclient-sdk-linux.x64-19.6.0.0.0dbru.zip \
|
||||
&& unzip instantclient-basiclite-linux.x64-19.6.0.0.0dbru.zip && unzip instantclient-sdk-linux.x64-19.6.0.0.0dbru.zip \
|
||||
&& rm *.zip
|
||||
|
||||
RUN set -ex \
|
||||
&& pip install -U pip \
|
||||
&& pip install cx_Oracle==5.3 django==3.0.3 \
|
||||
&& chmod +x /usr/local/bin/wait-for-it.sh
|
||||
|
8
base/django/3.2.4/Dockerfile
Normal file
8
base/django/3.2.4/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM python:3.8
|
||||
|
||||
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /usr/local/bin/wait-for-it.sh
|
||||
|
||||
RUN set -ex \
|
||||
&& pip install -U pip \
|
||||
&& pip install "django==3.2.4" "mysqlclient==2.0.2" \
|
||||
&& chmod +x /usr/local/bin/wait-for-it.sh
|
8
base/django/4.0.5/Dockerfile
Normal file
8
base/django/4.0.5/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM python:3.10
|
||||
|
||||
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /usr/local/bin/wait-for-it.sh
|
||||
|
||||
RUN set -ex \
|
||||
&& pip install -U pip \
|
||||
&& pip install "django==4.0.5" "psycopg2_binary==2.9.3" \
|
||||
&& chmod +x /usr/local/bin/wait-for-it.sh
|
Reference in New Issue
Block a user