Omar ID EL MOUMEN commited on
Commit
5724f4c
·
1 Parent(s): b08b330

Change order

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -1,5 +1,9 @@
1
  FROM python:3.9
2
 
 
 
 
 
3
  RUN useradd -m -u 1000 user
4
  USER user
5
  ENV PATH="/home/user/.local/bin:$PATH"
@@ -10,9 +14,4 @@ COPY --chown=user ./requirements.txt requirements.txt
10
  RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --no-cache-dir --upgrade -r requirements.txt
11
 
12
  COPY --chown=user . /app
13
-
14
- RUN apt-get update && \
15
- apt-get install -y libreoffice libreoffice-writer libreoffice-calc libreoffice-impress && \
16
- apt-get clean && rm -rf /var/lib/apt/lists/*
17
-
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9
2
 
3
+ RUN apt-get update && \
4
+ apt-get install -y libreoffice libreoffice-writer libreoffice-calc libreoffice-impress && \
5
+ apt-get clean && rm -rf /var/lib/apt/lists/*
6
+
7
  RUN useradd -m -u 1000 user
8
  USER user
9
  ENV PATH="/home/user/.local/bin:$PATH"
 
14
  RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --no-cache-dir --upgrade -r requirements.txt
15
 
16
  COPY --chown=user . /app
 
 
 
 
 
17
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]