Update Dockerfile
Browse files- Dockerfile +9 -9
Dockerfile
CHANGED
@@ -8,16 +8,16 @@ WORKDIR /code
|
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
-
RUN useradd -m -u 1000 user
|
12 |
-
USER user
|
13 |
-
ENV HOME=/home/user \
|
14 |
-
|
15 |
|
16 |
-
WORKDIR $HOME/app
|
17 |
-
COPY --chown=user . $HOME/app
|
18 |
-
RUN chown -R user:user models
|
19 |
-
RUN chmod +w models
|
20 |
-
RUN chmod 777 models
|
21 |
|
22 |
COPY . .
|
23 |
|
|
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
+
# RUN useradd -m -u 1000 user
|
12 |
+
# USER user
|
13 |
+
# ENV HOME=/home/user \
|
14 |
+
# PATH=/home/user/.local/bin:$PATH
|
15 |
|
16 |
+
# WORKDIR $HOME/app
|
17 |
+
# COPY --chown=user . $HOME/app
|
18 |
+
# RUN chown -R user:user models
|
19 |
+
# RUN chmod +w models
|
20 |
+
# RUN chmod 777 models
|
21 |
|
22 |
COPY . .
|
23 |
|