-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (34 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
41 lines (34 loc) · 1.05 KB
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
FROM python:3.11.13-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && \
apt-get install -y postgresql-client git && \
apt clean && \
rm -rf /var/cache/apt/* && \
apt-get -y install \
libglu1 \
libxcursor-dev \
libxft2 \
libxinerama1 \
libfltk1.3-dev \
libfreetype6-dev \
libgl1-mesa-dev \
libocct-foundation-dev \
libocct-data-exchange-dev
# Upgrade pip and install build dependencies
RUN pip install --upgrade pip setuptools wheel
# Copy requirements and local submodules
COPY backend/requirements.txt /app
# COPY simulation-backend/ /app/simulation-backend
# COPY backend/MyNewMethod/ /app/MyNewMethod
# Install local submodules first
#RUN pip install /app/simulation-backend
#RUN pip install /app/MyNewMethod
# Install remaining dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy backend source code
COPY backend/ /app
# Make entrypoint executable
RUN chmod +x ./entrypoint.sh
EXPOSE 5001
CMD ["/app/entrypoint.sh"]