File size: 730 Bytes
66f7364 416241e 66f7364 b54caf4 66f7364 3da977e 66f7364 f721078 88002f3 66f7364 7236981 416241e 66f7364 416241e 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 |
FROM ubuntu:latest
# Update package lists and install dependencies
ENV SUDO_FORCE_REMOVE=yes
RUN apt-get update && \
apt-get install -y screenfetch software-properties-common adduser curl git && \
add-apt-repository ppa:deadsnakes/ppa -y
# Install Node.js
RUN apt-get install -y nodejs npm neofetch sudo
RUN echo "ubuntu ALL=(ALL) NOPASSWD: /usr/bin/apt, /usr/bin/apt-get, /usr/bin/dpkg" > /etc/sudoers.d/ubuntu && chmod 440 /etc/sudoers.d/ubuntu
# 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"] |