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.dev 783 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
  1. FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:22
  2. # Install additional OS packages including Python 3.11
  3. RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
  4. && apt-get -y install --no-install-recommends \
  5. jq htop python3.11 python3.11-venv \
  6. && apt-get clean \
  7. && rm -rf /var/lib/apt/lists/*
  8. # Set Python 3.11 as the default python and python3
  9. RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 \
  10. && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
  11. # Set up npm directories and cache directory
  12. RUN mkdir -p /home/node/.promptfoo && \
  13. chown -R node:node /home/node
  14. USER node
  15. WORKDIR /workspace
  16. # Copy package.json and package-lock.json
  17. COPY --chown=node:node package*.json ./
Tip!

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

Comments

Loading...