forked from NoahGWood/OpenEFT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 876 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Base image
FROM python:3.9-bullseye
# Expose port 8080
EXPOSE 8080
# Set environment variables
ENV PATH="/root/OpenEFT/nbis/nfseg/bin:/root/OpenEFT/nbis/nfiq/bin:$PATH"
ENV TZ="America/Denver"
# Update and install required packages, including cmake, X11 development libraries, and openjpeg
RUN apt-get update && apt-get install -y \
git \
sudo \
build-essential \
cmake \
libopenjp2-7-dev \
libgl1-mesa-glx \
libx11-dev \
libfuse2 \
libxext-dev \
bash
# Clone the OpenEFT repository
RUN git clone https://github.com/kourosh-forti-hands/OpenEFT.git /root/OpenEFT && \
cd /root/OpenEFT && git pull
# Set working directory to the cloned repo
WORKDIR /root/OpenEFT
# Run the build_linux.sh script
RUN chmod +x build_linux.sh && bash build_linux.sh
# Set the default command to run the application
CMD ["python3", "openeft.py"]