File size: 530 Bytes
66f7364 416241e 66f7364 7236981 416241e 66f7364 416241e 7236981 66f7364 7df9e12 |
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 |
FROM ubuntu:latest
# Update package lists and install dependencies
RUN apt-get update && \
apt-get install -y software-properties-common curl git && \
add-apt-repository ppa:deadsnakes/ppa -y
# Install Node.js
RUN apt-get install -y nodejs npm
# Set the working directory
WORKDIR /app
# 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
EXPOSE 7860
# Run the application
CMD ["node", "server.js"] |