-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (32 loc) · 901 Bytes
/
Dockerfile
File metadata and controls
41 lines (32 loc) · 901 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
36
37
38
39
40
41
# Base Python image
FROM python:3.13-slim
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
build-essential \
python3-dev \
bash \
nginx \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
## Install uv
RUN pip install --no-cache-dir uv
COPY pyproject.toml .
COPY .python-version .
COPY uv.lock .
# Copy application code
COPY ./BackEnd/ ./BackEnd/
RUN uv sync
# -------------------- Frontend Setup --------------------
COPY ./FrontEnd/ ./FrontEnd/
# -------------------- NGINX Setup --------------------
# NGINX configuration
COPY /nginx.conf /etc/nginx/nginx.conf
# Copy and prepare startup script
COPY ./start_server.sh ./start_server.sh
RUN sed -i 's/\r$//' ./start_server.sh && chmod +x ./start_server.sh
# Expose NGINX port
EXPOSE 8080
# Start server
CMD ["./start_server.sh"]