-
Notifications
You must be signed in to change notification settings - Fork 33
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
Showing
6 changed files
with
20 additions
and
60 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:22.04 | ||
FROM ubuntu:24.04 | ||
MAINTAINER CVision AI <[email protected]> | ||
|
||
ARG APT_REPO_HOST=http://archive.ubuntu.com/ubuntu/ | ||
|
@@ -8,43 +8,33 @@ RUN sed -i "s;http://archive.ubuntu.com/ubuntu/;${APT_REPO_HOST};" /etc/apt/sour | |
# Install apt packages | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
cron \ | ||
curl \ | ||
ffmpeg \ | ||
gcc \ | ||
git \ | ||
libffi-dev \ | ||
libgdal-dev \ | ||
libgraphviz-dev \ | ||
python3 \ | ||
python3-dev \ | ||
python3-magic \ | ||
python3-venv \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
vim \ | ||
libgdal-dev \ | ||
libmagic-dev \ | ||
wget \ | ||
xdot \ | ||
xmlsec1 \ | ||
postgresql-client-14 \ | ||
postgresql-client \ | ||
redis-tools \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install pip packages | ||
RUN python3 -m pip --no-cache-dir --timeout=1000 install --upgrade pip | ||
RUN python3 -m venv tator | ||
COPY containers/tator/requirements.txt requirements.txt | ||
RUN pip3 --no-cache-dir --timeout=1000 install -r requirements.txt | ||
RUN . tator/bin/activate && pip --no-cache-dir --timeout=1000 install --upgrade pip && pip --no-cache-dir --timeout=1000 install -r requirements.txt | ||
RUN rm requirements.txt | ||
ENV PATH="/tator/bin:$PATH" | ||
|
||
# Get acme_tiny.py for certificate renewal | ||
WORKDIR / | ||
COPY containers/tator/md5sum_checks.txt checks.txt | ||
RUN wget https://raw.githubusercontent.com/diafygi/acme-tiny/4.1.0/acme_tiny.py | ||
|
||
# Install kubectl | ||
RUN wget https://storage.googleapis.com/kubernetes-release/release/v1.16.9/bin/linux/amd64/kubectl | ||
RUN md5sum --check checks.txt | ||
RUN chmod +x kubectl | ||
RUN mv kubectl /usr/local/bin/. | ||
|
||
WORKDIR /tator_online | ||
# Copy over the project | ||
COPY api/main /tator_online/main | ||
|
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