alba.saco commited on
Commit
df66179
1 Parent(s): 3607c58

update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -1,11 +1,11 @@
1
- # FROM python:3.10 AS builder
2
- FROM python:3.10
3
 
4
  WORKDIR /code
5
  # WORKDIR /home/user/app
6
 
7
  # COPY ./requirements.txt /code/requirements.txt
8
- COPY . /code
9
 
10
  RUN apt-get update && apt-get install -y git
11
 
@@ -21,16 +21,19 @@ RUN git submodule update --recursive
21
 
22
  # Stage 2
23
 
24
- # FROM python:3.10
25
 
26
  # WORKDIR /home/user/app
27
- # WORKDIR /code
28
 
29
  # Copy files from the builder stage
30
  # COPY --from=builder /home/user/app /home/user/app
 
31
 
32
  # COPY ./requirements.txt /home/user/app/requirements.txt
33
 
 
 
34
  RUN pip install torch
35
 
36
  RUN pip install wheel
 
1
+ FROM python:3.10 AS builder
2
+ # FROM python:3.10
3
 
4
  WORKDIR /code
5
  # WORKDIR /home/user/app
6
 
7
  # COPY ./requirements.txt /code/requirements.txt
8
+ # COPY . /code
9
 
10
  RUN apt-get update && apt-get install -y git
11
 
 
21
 
22
  # Stage 2
23
 
24
+ FROM python:3.10
25
 
26
  # WORKDIR /home/user/app
27
+ WORKDIR /code
28
 
29
  # Copy files from the builder stage
30
  # COPY --from=builder /home/user/app /home/user/app
31
+ COPY --from=builder /code/yachtiocraft /code/yachtiocraft
32
 
33
  # COPY ./requirements.txt /home/user/app/requirements.txt
34
 
35
+ WORKDIR /code/yachtiocraft
36
+
37
  RUN pip install torch
38
 
39
  RUN pip install wheel