Dockerfile
39 lines
| 1.9 KiB
| text/x-dockerfile-config
|
DockerLexer
|
r370 | FROM python:3.9.16-slim-bullseye | ||
|
r282 | |||
# set working directory | ||||
RUN mkdir /radarsys | ||||
|
r351 | RUN pwd | ||
|
r282 | WORKDIR /radarsys | ||
|
r351 | COPY /pipLibraries ./ | ||
RUN pwd | ||||
RUN ls -al | ||||
|
r282 | |||
# Install python dependences | ||||
|
r296 | ADD requirements.txt ./requirements.txt | ||
r299 | RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends \ | |||
gcc \ | ||||
g++ \ | ||||
|
r351 | && pip install -v --timeout 120 --no-cache-dir ./Django-4.1.5-py3-none-any.whl \ | ||
&& pip install -v --timeout 120 --no-cache-dir ./django-bootstrap5-22.2.tar.gz \ | ||||
|
r370 | && pip install -v --timeout 120 --no-cache-dir ./psycopg2_binary-2.9.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | ||
|
r351 | && pip install -v --timeout 120 --no-cache-dir ./django-polymorphic-3.1.0.tar.gz \ | ||
|
r370 | && pip install -v --timeout 120 --no-cache-dir ./numpy-1.24.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | ||
|
r351 | && pip install -v --timeout 120 --no-cache-dir ./bokeh-3.0.3-py3-none-any.whl\ | ||
|
r370 | && pip install -v --timeout 120 --no-cache-dir ./matplotlib-3.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | ||
&& pip install -v --timeout 120 --no-cache-dir ./scipy-1.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | ||||
|
r351 | && pip install -v --timeout 120 --no-cache-dir ./celery-5.2.7.tar.gz \ | ||
&& pip install -v --timeout 120 --no-cache-dir ./gunicorn-20.1.0-py3-none-any.whl \ | ||||
&& pip install -v --timeout 120 --no-cache-dir ./requests-2.28.2-py3-none-any.whl \ | ||||
&& pip install -v --timeout 120 --no-cache-dir ./redis-4.4.2-py3-none-any.whl \ | ||||
|
r353 | && pip install -v --timeout 120 --no-cache-dir ./graphene_django-3.0.0-py2.py3-none-any.whl \ | ||
|
r373 | && pip install -v --timeout 120 --no-cache-dir ./channels-4.0.0.tar.gz \ | ||
&& pip install -v --timeout 120 --no-cache-dir ./daphne-4.0.0.tar.gz \ | ||||
|
r351 | #&& pip install -v --timeout 120 -r requirements.txt --no-cache-dir \ | ||
r299 | && apt-get purge -y --auto-remove gcc g++\ | |||
&& rm -rf /var/lib/apt/lists/* | ||||
|
r282 | |||
|
r296 | # Copy the main application. | ||
COPY . ./ | ||||
|
r298 | |||
r299 | EXPOSE 8000 | |||