update docker image
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -35,17 +35,17 @@
|
|
35 |
|
36 |
FROM python:3.9
|
37 |
|
38 |
-
WORKDIR /
|
39 |
|
40 |
-
COPY
|
41 |
|
42 |
-
COPY ./packages.txt /
|
43 |
-
RUN
|
44 |
-
|
45 |
-
|
46 |
|
47 |
|
48 |
-
RUN pip install --no-cache-dir --upgrade -r /
|
49 |
|
50 |
# Set up a new user named "user" with user ID 1000
|
51 |
RUN useradd -m -u 1000 user
|
|
|
35 |
|
36 |
FROM python:3.9
|
37 |
|
38 |
+
WORKDIR /app
|
39 |
|
40 |
+
COPY . .
|
41 |
|
42 |
+
# COPY ./packages.txt /app/packages.txt
|
43 |
+
RUN packages.txt,source=packages.txt apt-get update && xargs -r -a /app/packages.txt apt-get install -y && apt-get install -y curl && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* && apt-get clean
|
44 |
+
RUN ln -s /usr/lib/python3/dist-packages/uno.py /usr/local/lib/python3.9/site-packages/
|
45 |
+
RUN ln -s /usr/lib/python3/dist-packages/unohelper.py /usr/local/lib/python3.9/site-packages/
|
46 |
|
47 |
|
48 |
+
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
49 |
|
50 |
# Set up a new user named "user" with user ID 1000
|
51 |
RUN useradd -m -u 1000 user
|