forked from PX4/flight_review
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 748 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 748 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
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
libfftw3-dev \
sqlite3 \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY app/requirements.txt ./app/requirements.txt
RUN pip install --no-cache-dir -r app/requirements.txt
# Copy application code
COPY . .
# Setup database and directories
RUN python app/setup_db.py
# Expose port (Kinsta will set the PORT env var)
EXPOSE 8080
# Start the application
CMD cd app && python serve.py --port ${PORT:-8080} --address 0.0.0.0 \
--allow-websocket-origin=ark-flight-review-9cuak.kinsta.app \
--host=ark-flight-review-9cuak.kinsta.app:443