racorus commited on
Commit
10e9dad
·
verified ·
1 Parent(s): 7c084e1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -6
Dockerfile CHANGED
@@ -1,11 +1,35 @@
1
- # Use the WebODM base image
2
- FROM opendronemap/webodm_webapp:latest
3
 
4
- # Set the environment variables for WebODM
5
- ENV WEBODM_PORT=8000
6
 
7
- # Expose the WebODM port
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  EXPOSE 8000
9
 
10
- # Run the WebODM server
 
 
 
11
  CMD ["./webodm.sh", "start"]
 
1
+ # Use the official Ubuntu base image
2
+ FROM ubuntu:20.04
3
 
4
+ # Set environment variables to non-interactive for apt
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
 
7
+ # Install dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ curl \
11
+ sudo \
12
+ wget \
13
+ python3 \
14
+ python3-pip \
15
+ docker.io \
16
+ docker-compose \
17
+ && apt-get clean
18
+
19
+ # Install Node.js
20
+ RUN curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - \
21
+ && apt-get install -y nodejs
22
+
23
+ # Install WebODM
24
+ RUN git clone https://github.com/OpenDroneMap/WebODM --depth 1 && \
25
+ cd WebODM && \
26
+ ./webodm.sh install
27
+
28
+ # Expose the default WebODM port
29
  EXPOSE 8000
30
 
31
+ # Set the working directory
32
+ WORKDIR /WebODM
33
+
34
+ # Start WebODM
35
  CMD ["./webodm.sh", "start"]