Hush-flavored NOMP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
652 B

FROM ubuntu:18.04
LABEL maintainer="jahway603"
# added this to fix strange error about /tmp
RUN chmod 1777 /tmp
RUN apt-get update -y && \
apt-get install -y gcc g++ make libboost-dev libboost-system-dev libsodium-dev sudo curl git iputils-ping
RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && \
apt-get install -y nodejs
RUN useradd hnomp
COPY . /home/hnomp/hnomp
RUN echo "hnomp ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user && \
chown -R hnomp:hnomp /home/hnomp
RUN cd /home/hnomp/hnomp && npm install
USER hnomp
WORKDIR /home/hnomp/hnomp
EXPOSE 8080
CMD npm start