Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -14,14 +14,14 @@ WORKDIR $HOME/app
|
|
| 14 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 15 |
COPY --chown=user . $HOME/app
|
| 16 |
RUN xargs apt-get install < ./paquetes.txt -y
|
|
|
|
|
|
|
|
|
|
| 17 |
# Switch to the "user" user
|
| 18 |
USER user
|
| 19 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
| 20 |
RUN pip install --no-cache-dir --upgrade pip
|
| 21 |
RUN pip install -r requirements.txt
|
| 22 |
-
RUN chmod 777 .
|
| 23 |
-
RUN wget https://raw.githubusercontent.com/blang/latex-docker/master/latexdockercmd.sh
|
| 24 |
-
RUN chmod +x latexdockercmd.sh
|
| 25 |
|
| 26 |
EXPOSE 7080
|
| 27 |
CMD ["fastapi", "run", "app.py", "--port", "7080"]
|
|
|
|
| 14 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 15 |
COPY --chown=user . $HOME/app
|
| 16 |
RUN xargs apt-get install < ./paquetes.txt -y
|
| 17 |
+
RUN wget https://raw.githubusercontent.com/blang/latex-docker/master/latexdockercmd.sh
|
| 18 |
+
RUN chmod +x latexdockercmd.sh
|
| 19 |
+
|
| 20 |
# Switch to the "user" user
|
| 21 |
USER user
|
| 22 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
| 23 |
RUN pip install --no-cache-dir --upgrade pip
|
| 24 |
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
EXPOSE 7080
|
| 27 |
CMD ["fastapi", "run", "app.py", "--port", "7080"]
|