WebashalarForML commited on
Commit
3aae586
·
verified ·
1 Parent(s): 56fcc46

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -31,13 +31,6 @@ WORKDIR /app
31
  # Copy the requirements file into the container at /app
32
  COPY requirements.txt /app/
33
 
34
- # Install dependencies
35
- RUN pip install --no-cache-dir -r requirements.txt
36
-
37
- # Create and set permissions for the cache directory
38
- RUN mkdir -p /app/cache /app/blocks /app/generated_projects /app/static /app/static/assets && \
39
- chmod -R 777 /app/cache /app/blocks /app/generated_projects /app/static /app/static/assets
40
-
41
  # Copy the rest of the application code to /app
42
  COPY blocks/ /app/blocks/
43
  COPY generated_projects/ /app/generated_projects/
@@ -45,6 +38,13 @@ COPY static/ /app/static/
45
  COPY static/assets/ /app/static/assets/
46
  COPY . /app/
47
 
 
 
 
 
 
 
 
48
  # Set environment variables for Flask
49
  ENV FLASK_APP=app.py \
50
  FLASK_ENV=production
 
31
  # Copy the requirements file into the container at /app
32
  COPY requirements.txt /app/
33
 
 
 
 
 
 
 
 
34
  # Copy the rest of the application code to /app
35
  COPY blocks/ /app/blocks/
36
  COPY generated_projects/ /app/generated_projects/
 
38
  COPY static/assets/ /app/static/assets/
39
  COPY . /app/
40
 
41
+ # Install dependencies
42
+ RUN pip install --no-cache-dir -r requirements.txt
43
+
44
+ # Create and set permissions for the cache directory
45
+ RUN mkdir -p /app/cache /app/blocks /app/generated_projects /app/static /app/static/assets && \
46
+ chmod -R 777 /app/cache /app/blocks /app/generated_projects /app/static /app/static/assets
47
+
48
  # Set environment variables for Flask
49
  ENV FLASK_APP=app.py \
50
  FLASK_ENV=production