Update Dockerfile
Browse files- Dockerfile +3 -8
Dockerfile
CHANGED
|
@@ -1,15 +1,8 @@
|
|
| 1 |
-
# Use the official Node.js image as the base image
|
| 2 |
FROM node:current-bullseye
|
| 3 |
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /vpsfree-45
|
| 6 |
-
|
| 7 |
-
USER root
|
| 8 |
-
# maybe
|
| 9 |
-
RUN apt update
|
| 10 |
-
RUN adduser node sudo
|
| 11 |
-
RUN apt install neofetch sudo ssh -y
|
| 12 |
-
RUN curl -fsSL https://ollama.com/install.sh | sh
|
| 13 |
# Copy package.json and package-lock.json
|
| 14 |
COPY package*.json ./
|
| 15 |
|
|
@@ -21,5 +14,7 @@ COPY . .
|
|
| 21 |
|
| 22 |
# Expose the port the app runs on
|
| 23 |
EXPOSE 7860
|
|
|
|
|
|
|
| 24 |
USER root
|
| 25 |
CMD ["node", "server.js"]
|
|
|
|
|
|
|
| 1 |
FROM node:current-bullseye
|
| 2 |
|
| 3 |
# Set the working directory in the container
|
| 4 |
WORKDIR /vpsfree-45
|
| 5 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# Copy package.json and package-lock.json
|
| 7 |
COPY package*.json ./
|
| 8 |
|
|
|
|
| 14 |
|
| 15 |
# Expose the port the app runs on
|
| 16 |
EXPOSE 7860
|
| 17 |
+
|
| 18 |
+
# Run the application as root
|
| 19 |
USER root
|
| 20 |
CMD ["node", "server.js"]
|