old changes
This commit is contained in:
74
agent-node/.devcontainer/Dockerfile
Normal file
74
agent-node/.devcontainer/Dockerfile
Normal file
@ -0,0 +1,74 @@
|
||||
# FROM node:18
|
||||
|
||||
# # Install basic development tools
|
||||
# RUN apt update && apt install -y less man-db sudo
|
||||
|
||||
# # Ensure default `node` user has access to `sudo`
|
||||
# ARG USERNAME=node
|
||||
# RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
||||
# && chmod 0440 /etc/sudoers.d/$USERNAME
|
||||
|
||||
|
||||
# # WORKDIR /app
|
||||
# # COPY package*.json ./
|
||||
# # RUN npm install --production --silent
|
||||
# # RUN npm install --production --silent && mv node_modules ../
|
||||
|
||||
# # RUN npm cache clean --force
|
||||
# # RUN npm install
|
||||
|
||||
#############################################################################################################
|
||||
# new dockerfile
|
||||
|
||||
# # Use the latest Node.js LTS version as the base image
|
||||
# FROM node:lts
|
||||
|
||||
# # Copy the package.json and package-lock.json files to the working directory
|
||||
|
||||
# # Set the working directory to /app
|
||||
# WORKDIR /app
|
||||
# # RUN npm install -g npm@9.6.2
|
||||
# COPY package*.json ./
|
||||
|
||||
|
||||
# # Install all dependencies from package.json
|
||||
# # RUN npm install
|
||||
|
||||
# EXPOSE 3000
|
||||
# # RUN npx dalai alpaca install 7B
|
||||
# # COPY . .
|
||||
# # Set `DEVCONTAINER` environment variable to help with orientation
|
||||
# ENV DEVCONTAINER=true
|
||||
|
||||
# FROM alpaca-7b:latest
|
||||
# EXPOSE 3003
|
||||
|
||||
FROM node:18
|
||||
RUN apt-get update
|
||||
# RUN apk update && apk add bash
|
||||
# RUN apk search python3
|
||||
# RUN apk info -a python3
|
||||
|
||||
# RUN apk add build-base
|
||||
# RUN apk add --no-cache python3==3.10.10-r0
|
||||
|
||||
WORKDIR /app
|
||||
# RUN npm install -g npm@9.6.2
|
||||
COPY package.json .
|
||||
RUN npm install
|
||||
|
||||
# RUN npm install dalai
|
||||
RUN npx dalai llama install 7B
|
||||
RUN npx dalai alpaca install 7B
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
CMD [ "npx", "dalai", "serve" ]
|
||||
|
||||
#root@DBSpare:/mnt/apps/DEV/arti-ai/agent-node/.devcontainer# docker build -t alpaca-7b.dev .
|
||||
# docker run -p 3003:3003 -it alpaca-7b.dev
|
||||
|
||||
# upload to docker hub
|
||||
# docker tag alpaca-7b.dev:latest dobromirpopov/alpaca-7b.dev:latest
|
||||
# docker push dobromirpopov/alpaca-7b.dev:latest
|
18
agent-node/.devcontainer/devcontainer.json
Normal file
18
agent-node/.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,18 @@
|
||||
// See https://containers.dev/implementors/json_reference/ for configuration reference
|
||||
{
|
||||
"name": "Untitled Node.js project",
|
||||
"build": {
|
||||
//container name
|
||||
"containerName": "agent-node.lama.dev",
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"remoteUser": "node",
|
||||
"features": {
|
||||
// "ghcr.io/devcontainers/features/python:1": {
|
||||
// "installTools": true,
|
||||
// "version": "3.10"
|
||||
// }
|
||||
},
|
||||
"postCreateCommand": "npx dalai serve"
|
||||
// "postCreateCommand": ["npm install dalai", "npx dalai alpaca install 7B" ]
|
||||
}
|
7
agent-node/.devcontainer/package.json
Normal file
7
agent-node/.devcontainer/package.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "kevin-ai-alpaca",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"dalai": "^0.2.50"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user