Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
FROM python:3.9
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY ./requirements.txt /app/requirements.txt
|
| 6 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
| 7 |
-
RUN pip3 install numpy
|
| 8 |
RUN pip3 install cython==0.29.21
|
| 9 |
RUN pip3 install pygco==0.0.16
|
| 10 |
|
|
@@ -12,7 +12,8 @@ RUN pip3 install pygco==0.0.16
|
|
| 12 |
RUN useradd -m -u 1000 user
|
| 13 |
USER user
|
| 14 |
ENV HOME /home/user
|
| 15 |
-
ENV
|
|
|
|
| 16 |
|
| 17 |
WORKDIR $HOME
|
| 18 |
RUN mkdir app
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY ./requirements.txt /app/requirements.txt
|
| 6 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
| 7 |
+
RUN pip3 install numpy
|
| 8 |
RUN pip3 install cython==0.29.21
|
| 9 |
RUN pip3 install pygco==0.0.16
|
| 10 |
|
|
|
|
| 12 |
RUN useradd -m -u 1000 user
|
| 13 |
USER user
|
| 14 |
ENV HOME /home/user
|
| 15 |
+
ENV
|
| 16 |
+
PATH $HOME/.local/bin:$PATH
|
| 17 |
|
| 18 |
WORKDIR $HOME
|
| 19 |
RUN mkdir app
|