kapllan commited on
Commit
fc6b9ff
·
verified ·
1 Parent(s): 0156111

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -10
Dockerfile CHANGED
@@ -1,14 +1,6 @@
1
  # Use an official Python runtime as a parent image
2
  FROM --platform=amd64 python:3.10
3
 
4
- # Set the working directory in the container
5
- RUN useradd -m -u 1000 user
6
- USER user
7
- ENV HOME=/home/user \
8
- PATH=/home/user/.local/bin:$PATH
9
-
10
- COPY --chown=user . $HOME/app
11
-
12
  # Set environment variables for Poetry
13
  ENV POETRY_VERSION=1.4.0 \
14
  POETRY_HOME="/opt/poetry" \
@@ -25,9 +17,14 @@ ENV PATH="$POETRY_HOME/bin:$PATH"
25
  # Install git
26
  RUN apt-get update && apt-get install -y git && apt-get clean
27
 
28
- RUN git clone https://github.com/kapllan/SmartOpinion.git $HOME/app/SmartOpinion
 
 
 
 
29
 
30
- WORKDIR $HOME/app/SmartOpinion
 
31
 
32
  # Install any dependencies specified in requirements.txt
33
  RUN pip install poetry
 
1
  # Use an official Python runtime as a parent image
2
  FROM --platform=amd64 python:3.10
3
 
 
 
 
 
 
 
 
 
4
  # Set environment variables for Poetry
5
  ENV POETRY_VERSION=1.4.0 \
6
  POETRY_HOME="/opt/poetry" \
 
17
  # Install git
18
  RUN apt-get update && apt-get install -y git && apt-get clean
19
 
20
+ RUN git clone https://github.com/kapllan/SmartOpinion.git /app
21
+
22
+
23
+ # Set the working directory in the container
24
+ WORKDIR /app
25
 
26
+ # Copy the current directory contents into the container at /app
27
+ # COPY . /app
28
 
29
  # Install any dependencies specified in requirements.txt
30
  RUN pip install poetry