switch to python 3.10
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
|
@@ -1,13 +1,12 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY . .
|
| 6 |
|
| 7 |
RUN --mount=target=/tmp/packages.txt,source=packages.txt apt-get update && xargs -r -a /tmp/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
|
| 8 |
-
RUN ln -s /usr/lib/python3/dist-packages/uno.py /usr/local/lib/python3.
|
| 9 |
-
RUN ln -s /usr/lib/python3/dist-packages/unohelper.py /usr/local/lib/python3.
|
| 10 |
-
|
| 11 |
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
| 13 |
|
|
@@ -25,5 +24,4 @@ WORKDIR $HOME/app
|
|
| 25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 26 |
COPY --chown=user . $HOME/app
|
| 27 |
|
| 28 |
-
|
| 29 |
CMD ["python","app.py"]
|
|
|
|
| 1 |
+
FROM python:3.10
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY . .
|
| 6 |
|
| 7 |
RUN --mount=target=/tmp/packages.txt,source=packages.txt apt-get update && xargs -r -a /tmp/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
|
| 8 |
+
RUN ln -s /usr/lib/python3/dist-packages/uno.py /usr/local/lib/python3.10/site-packages/
|
| 9 |
+
RUN ln -s /usr/lib/python3/dist-packages/unohelper.py /usr/local/lib/python3.10/site-packages/
|
|
|
|
| 10 |
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
| 12 |
|
|
|
|
| 24 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 25 |
COPY --chown=user . $HOME/app
|
| 26 |
|
|
|
|
| 27 |
CMD ["python","app.py"]
|