node1 / Dockerfile
1tbfree's picture
Update Dockerfile
7df9e12 verified
raw
history blame
529 Bytes
# Use the official Node.js image as the base image
FROM node:current-bullseye
# Set the working directory in the container
WORKDIR /vpsfree-45
# Root
USER root
# maybe
RUN apt update
RUN adduser node sudo
RUN apt install neofetch sudo ssh -y
RUN curl -fsSL https://ollama.com/install.sh | sh
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the port the app runs on
EXPOSE 7860
USER root
CMD ["node", "server.js"]