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