Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
|
@@ -8,7 +8,7 @@ ENV MODEL_NAME=${MODEL_NAME}
|
|
| 8 |
ENV TZ=Europe/Paris
|
| 9 |
PORT=3000
|
| 10 |
|
| 11 |
-
|
| 12 |
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc |
|
| 13 |
gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg
|
| 14 |
--dearmor
|
|
@@ -19,14 +19,14 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|
| 19 |
mongodb-org &&
|
| 20 |
rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
-
|
| 23 |
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | /bin/bash -
|
| 24 |
|
| 25 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends
|
| 26 |
nodejs &&
|
| 27 |
rm -rf /var/lib/apt/lists/*
|
| 28 |
|
| 29 |
-
|
| 30 |
RUN useradd -m -u 1000 user
|
| 31 |
|
| 32 |
RUN mkdir /app
|
|
@@ -34,7 +34,7 @@ RUN chown -R 1000:1000 /app
|
|
| 34 |
RUN mkdir /data
|
| 35 |
RUN chown -R 1000:1000 /data
|
| 36 |
|
| 37 |
-
|
| 38 |
USER user
|
| 39 |
|
| 40 |
ENV HOME=/home/user
|
|
@@ -55,7 +55,5 @@ COPY --chown=1000 entrypoint.sh /app/entrypoint.sh
|
|
| 55 |
|
| 56 |
RUN chmod +x /app/entrypoint.sh
|
| 57 |
|
| 58 |
-
|
| 59 |
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
| 60 |
-
(entrypoint)
|
| 61 |
-
#!/bin/bash
|
|
|
|
| 8 |
ENV TZ=Europe/Paris
|
| 9 |
PORT=3000
|
| 10 |
|
| 11 |
+
|
| 12 |
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc |
|
| 13 |
gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg
|
| 14 |
--dearmor
|
|
|
|
| 19 |
mongodb-org &&
|
| 20 |
rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
+
|
| 23 |
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | /bin/bash -
|
| 24 |
|
| 25 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends
|
| 26 |
nodejs &&
|
| 27 |
rm -rf /var/lib/apt/lists/*
|
| 28 |
|
| 29 |
+
|
| 30 |
RUN useradd -m -u 1000 user
|
| 31 |
|
| 32 |
RUN mkdir /app
|
|
|
|
| 34 |
RUN mkdir /data
|
| 35 |
RUN chown -R 1000:1000 /data
|
| 36 |
|
| 37 |
+
|
| 38 |
USER user
|
| 39 |
|
| 40 |
ENV HOME=/home/user
|
|
|
|
| 55 |
|
| 56 |
RUN chmod +x /app/entrypoint.sh
|
| 57 |
|
| 58 |
+
|
| 59 |
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
|
|
|
|
|