Laura Cabayol Garcia commited on
Commit
6098906
·
1 Parent(s): a36522b

deploy Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -25
Dockerfile CHANGED
@@ -1,30 +1,11 @@
1
- FROM pytorch/pytorch:latest
2
-
3
- WORKDIR /code
4
-
5
- # Install the repository directly from GitHub
6
- RUN apt-get update && \
7
- apt-get upgrade -y && \
8
- apt-get install -y git
9
-
10
- # Set up a new user named "user" with user ID 1000
11
- RUN useradd -m -u 1000 user
12
-
13
- # Switch to the "user" user
14
- USER user
15
 
16
  RUN pip install git+https://github.com/lauracabayol/TEMPS.git
17
-
18
- # Set home to the user's home directory
19
- ENV HOME=/home/user \
20
- PATH=/home/user/.local/bin:$PATH
21
-
22
- # Set the working directory to the user's home directory
23
- WORKDIR $HOME/app
24
-
25
- # Copy the current directory contents into the container at $HOME/app
26
- # setting the owner to the user
27
- COPY --chown=user . $HOME/app
28
 
29
  # Expose the port the app runs on (if needed)
30
  EXPOSE 7860
 
1
+ # Use a base image with Python
2
+ FROM python:3.10
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  RUN pip install git+https://github.com/lauracabayol/TEMPS.git
5
+ # Set the working directory
6
+ WORKDIR /app
7
+ # Copy the rest of your application files into the container
8
+ COPY app/ .
 
 
 
 
 
 
 
9
 
10
  # Expose the port the app runs on (if needed)
11
  EXPOSE 7860