tinaok commited on
Commit
974f792
·
verified ·
1 Parent(s): 7940862

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -4
Dockerfile CHANGED
@@ -3,12 +3,20 @@ FROM python:3.11.7
3
  WORKDIR /code
4
 
5
  # Copy the Python code from the xsadcp repository
6
- RUN git clone https://github.com/tinaok/xsadcp.git xsadcp
7
- RUN pwd \
8
- && ls
9
  #
10
  #COPY ./requirements.txt /code/requirements.txt
11
- COPY .xsadcp/requirements.txt /code/requirements.txt
 
 
 
 
 
 
 
 
12
  RUN python3 -m pip install --no-cache-dir --upgrade pip
13
  RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
 
 
3
  WORKDIR /code
4
 
5
  # Copy the Python code from the xsadcp repository
6
+ #RUN git clone https://github.com/tinaok/xsadcp.git xsadcp
7
+ #RUN pwd \
8
+ # && ls
9
  #
10
  #COPY ./requirements.txt /code/requirements.txt
11
+ # Download and extract xsadcp code from GitHub
12
+ RUN apt-get update \
13
+ && apt-get install -y wget tar \
14
+ && wget https://github.com/tinaok/xsadcp/archive/refs/tags/0.1.tar.gz \
15
+ && tar -xzvf 0.1.tar.gz \
16
+ && mv xsadcp-0.1 xsadcp \
17
+ && rm 0.1.tar.gz
18
+
19
+ COPY ./xsadcp/requirements.txt /code/requirements.txt
20
  RUN python3 -m pip install --no-cache-dir --upgrade pip
21
  RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
22