MammaMia-Urlo commited on
Commit
dc5ae5c
·
verified ·
1 Parent(s): 809016f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -11
Dockerfile CHANGED
@@ -7,20 +7,12 @@ WORKDIR /app
7
  # Install git
8
  RUN apt-get update && apt-get install -y git
9
 
10
- # Remove existing MammaMia directory if it exists
11
- RUN rm -rf MammaMia
12
-
13
- # Clone the repository with a dummy argument to bust the cache
14
- RUN git clone https://github.com/UrloMythus/MammaMia.git --depth 1 && \
15
- rm -rf MammaMia/.git && \
16
- echo "Cache bust: $(date)"
17
 
18
  # Copy the local config.json file to the container
19
  COPY config.json /app/config.json
20
 
21
- # Change working directory to MammaMia where requirements.txt is present
22
- WORKDIR /app/MammaMia
23
-
24
  # Install any needed packages specified in requirements.txt
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
@@ -28,4 +20,4 @@ RUN pip install --no-cache-dir -r requirements.txt
28
  EXPOSE 8080
29
 
30
  # Run run.py when the container launches
31
- CMD ["python", "run.py"]
 
7
  # Install git
8
  RUN apt-get update && apt-get install -y git
9
 
10
+ # Clone the repository
11
+ RUN git clone https://github.com/UrloMythus/MammaMia.git .
 
 
 
 
 
12
 
13
  # Copy the local config.json file to the container
14
  COPY config.json /app/config.json
15
 
 
 
 
16
  # Install any needed packages specified in requirements.txt
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
 
20
  EXPOSE 8080
21
 
22
  # Run run.py when the container launches
23
+ CMD ["python", "run.py"]