From 80b0e1904aae849ad1acc6d99123ebff7f0d1a6e Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Sat, 30 Jul 2022 09:53:40 +0300 Subject: [PATCH] Added docker and docker-compose files --- Dockerfile | 11 +++++++++++ docker-compose.yml | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6eff224 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu +RUN apt-get update && \ + apt-get install -y build-essential pip net-tools iputils-ping iproute2 curl + +RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - +RUN apt-get install -y nodejs +RUN npm install -g watchify + +EXPOSE 3000 +EXPOSE 2000-2020 +EXPOSE 10000-10100 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..87ae4ee --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: "3" + +services: + linux: + container_name: "ubuntu-linux" + image: "ubuntu" + restart: "always" + tty: true + ports: + - "3000:3000" + - "2000-2020:2000-2020" + volumes: + - .:/app