From 3e6c1b9ddd98656c511532a68a49f7490f944de2 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Wed, 8 Jan 2025 13:13:09 -0500 Subject: [PATCH] chore: dockerize --- Dockerfile | 5 +++++ compose.yml | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6b11db0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM node:alpine +COPY . . + +RUN npm i +ENTRYPOINT ["npm", "start"] diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..8bf3d14 --- /dev/null +++ b/compose.yml @@ -0,0 +1,10 @@ +name: code-containers + +services: + server: + build: . + ports: + - 3000:3000 + - 3001:3001 + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro