not-lain commited on
Commit
45a9387
1 Parent(s): ad25292

update docker image

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -35,17 +35,17 @@
35
 
36
  FROM python:3.9
37
 
38
- WORKDIR /code
39
 
40
- COPY ./requirements.txt /code/requirements.txt
41
 
42
- COPY ./packages.txt /code/packages.txt
43
- RUN --mount=target=/code/packages.txt,source=packages.txt apt-get update && xargs -r -a /code/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.10/site-packages/
45
- # RUN ln -s /usr/lib/python3/dist-packages/unohelper.py /usr/local/lib/python3.10/site-packages/
46
 
47
 
48
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
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