Update Dockerfile
Browse files- Dockerfile +0 -3
Dockerfile
CHANGED
@@ -5,8 +5,6 @@ ENV SUDO_FORCE_REMOVE=yes
|
|
5 |
RUN apt-get update && \
|
6 |
apt-get install -y software-properties-common adduser curl git && \
|
7 |
add-apt-repository ppa:deadsnakes/ppa -y
|
8 |
-
RUN adduser user
|
9 |
-
RUN adduser user sudo
|
10 |
# Install Node.js
|
11 |
RUN apt-get install -y nodejs npm neofetch sudo
|
12 |
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
|
@@ -25,5 +23,4 @@ COPY . .
|
|
25 |
# Expose the port
|
26 |
EXPOSE 7860
|
27 |
# Run the application
|
28 |
-
USER user
|
29 |
CMD ["node", "server.js"]
|
|
|
5 |
RUN apt-get update && \
|
6 |
apt-get install -y software-properties-common adduser curl git && \
|
7 |
add-apt-repository ppa:deadsnakes/ppa -y
|
|
|
|
|
8 |
# Install Node.js
|
9 |
RUN apt-get install -y nodejs npm neofetch sudo
|
10 |
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
|
|
|
23 |
# Expose the port
|
24 |
EXPOSE 7860
|
25 |
# Run the application
|
|
|
26 |
CMD ["node", "server.js"]
|