nsarrazin HF staff commited on
Commit
2c7328f
·
verified ·
1 Parent(s): 2b467b2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -8,7 +8,6 @@ ENV MODEL_NAME=${MODEL_NAME}
8
  ENV TZ=Europe/Paris \
9
  PORT=3000
10
 
11
-
12
  # mongo installation
13
  RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
14
  gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
@@ -49,6 +48,10 @@ RUN npm install -g pm2
49
  COPY --from=base --chown=1000 /app/node_modules /app/node_modules
50
  COPY --from=base --chown=1000 /app/package.json /app/package.json
51
  COPY --from=base --chown=1000 /app/build /app/build
 
 
 
 
52
  COPY --chown=1000 entrypoint.sh /app/entrypoint.sh
53
 
54
  RUN chmod +x /app/entrypoint.sh
 
8
  ENV TZ=Europe/Paris \
9
  PORT=3000
10
 
 
11
  # mongo installation
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 \
 
48
  COPY --from=base --chown=1000 /app/node_modules /app/node_modules
49
  COPY --from=base --chown=1000 /app/package.json /app/package.json
50
  COPY --from=base --chown=1000 /app/build /app/build
51
+
52
+ COPY --from=base --chown=1000 /app/.env /app/.env
53
+ COPY --chown=1000 .env.local /app/.env.local
54
+
55
  COPY --chown=1000 entrypoint.sh /app/entrypoint.sh
56
 
57
  RUN chmod +x /app/entrypoint.sh