-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (24 loc) · 855 Bytes
/
Copy pathDockerfile
File metadata and controls
40 lines (24 loc) · 855 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
# FROM python:3.12
# RUN apt-get update && \
# apt-get install -y --no-install-recommends git && \
# rm -rf /var/lib/apt/lists/*
# WORKDIR /app
# # Clone entire repository (remove .git to prevent conflicts)
# RUN git clone https://github.com/CULPR1/atlas-fastapi.git . && \
# rm -rf .git
# # Install dependencies
# RUN pip install -r requirements.txt
# # Set Python path
# ENV PYTHONPATH=/app
FROM python:3.12
RUN apt-get update && \
apt-get install -y --no-install-recommends git && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Proper git clone with verification
RUN git clone --branch buyer-edits https://github.com/CULPR1/atlas-fastapi.git .
# RUN cp -a /app/atlas-fastapi/. /app/
# RUN rm -rf /app/repo
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
ENV PYTHONPATH=/app:/app/atlas-fastapi