update Dockerfile
This commit is contained in:
parent
67b099e8af
commit
27ae76a62a
20
Dockerfile
20
Dockerfile
@ -1,9 +1,23 @@
|
|||||||
FROM ubuntu:24.04
|
FROM ubuntu:24.04
|
||||||
ADD packages.txt packages.txt
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y $(cat packages.txt)
|
curl \
|
||||||
|
nginx \
|
||||||
|
python3 \
|
||||||
|
python3-pip \
|
||||||
|
python3-dev \
|
||||||
|
build-essential \
|
||||||
|
libpq-dev \
|
||||||
|
libjpeg-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
libopenjp2-7-dev \
|
||||||
|
vim \
|
||||||
|
wget \
|
||||||
|
zip \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ADD requirements.txt requirements.txt
|
ADD requirements.txt requirements.txt
|
||||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
|
RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
|
||||||
/root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt
|
rm -f /usr/lib/python*/EXTERNALLY-MANAGED && \
|
||||||
|
/root/.local/bin/uv pip install --system --no-cache -r requirements.txt
|
||||||
ADD api /emblem/api
|
ADD api /emblem/api
|
||||||
ADD web /emblem/web
|
ADD web /emblem/web
|
||||||
RUN cd /emblem/api && ./manage.py collectstatic --noinput
|
RUN cd /emblem/api && ./manage.py collectstatic --noinput
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -46,7 +46,7 @@ ALG_FILES = \
|
|||||||
) \
|
) \
|
||||||
)
|
)
|
||||||
|
|
||||||
docker-build: build/Dockerfile build/packages.txt build/requirements.txt \
|
docker-build: build/Dockerfile build/requirements.txt \
|
||||||
build/nginx.conf $(WEB_FILES) $(API_FILES) $(ALG_FILES) $(SCRIPTS_FILES) $(DATASET_FILES)
|
build/nginx.conf $(WEB_FILES) $(API_FILES) $(ALG_FILES) $(SCRIPTS_FILES) $(DATASET_FILES)
|
||||||
find build
|
find build
|
||||||
docker build --network=host -t $(IMAGE) build
|
docker build --network=host -t $(IMAGE) build
|
||||||
|
|||||||
26
packages.txt
26
packages.txt
@ -1,26 +0,0 @@
|
|||||||
curl
|
|
||||||
gunicorn
|
|
||||||
libc6
|
|
||||||
libcap2
|
|
||||||
libdbus-1-3
|
|
||||||
libexpat1
|
|
||||||
libgcc-s1
|
|
||||||
libgpg-error0
|
|
||||||
libgtk-3-0
|
|
||||||
libjsoncpp25
|
|
||||||
liblzma5
|
|
||||||
libopenjp2-7
|
|
||||||
libpcre3
|
|
||||||
libselinux1
|
|
||||||
nginx
|
|
||||||
python3-bottle
|
|
||||||
python3-flask
|
|
||||||
python3-pillow
|
|
||||||
python3-pip
|
|
||||||
python3-psycopg2
|
|
||||||
python3-requests
|
|
||||||
python3-opencv
|
|
||||||
vim
|
|
||||||
wget
|
|
||||||
zip
|
|
||||||
zlib1g
|
|
||||||
Loading…
x
Reference in New Issue
Block a user