Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile.local 633 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  1. ARG INCLUDE_DB=false
  2. FROM mongo:latest as mongo
  3. FROM node:20-slim as local_db_false
  4. FROM node:20-slim as local_db_true
  5. RUN apt-get update
  6. RUN apt-get install gnupg curl -y
  7. COPY --from=mongo /usr/bin/mongo* /usr/bin/
  8. FROM local_db_${INCLUDE_DB} as final
  9. ARG INCLUDE_DB=false
  10. ENV INCLUDE_DB=${INCLUDE_DB}
  11. WORKDIR /app
  12. COPY --link --chown=1000 package-lock.json package.json ./
  13. RUN --mount=type=cache,target=/app/.npm \
  14. npm set cache /app/.npm && \
  15. npm ci
  16. # copy the rest of the files, run regardless of
  17. COPY --chown=1000 --link . .
  18. RUN chmod +x /app/entrypoint.sh
  19. CMD ["/bin/bash", "-c", "/app/entrypoint.sh"]
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...