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.
 
 
 
 
 

24 lines
588 B

FROM ubuntu:18.04
LABEL maintainer="webworker01"
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 knomp
COPY . /home/knomp/knomp
RUN echo "knomp ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user && \
chown -R knomp:knomp /home/knomp
RUN cd /home/knomp/knomp && npm install
USER knomp
WORKDIR /home/knomp/knomp
EXPOSE 8080
CMD npm start