diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d6a0021 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:18-alpine + +WORKDIR /app + +COPY package.json . +COPY package-lock.json . + +RUN npm install + +COPY . . + +EXPOSE 5000 + +CMD ["npx", "nodemon", "app.js"] \ No newline at end of file diff --git a/revsocial.yaml b/revsocial.yaml new file mode 100644 index 0000000..4789146 --- /dev/null +++ b/revsocial.yaml @@ -0,0 +1,7 @@ +services: + revsocial: + build: . + container_name: revsocial + ports: + - "5000:5000" + restart: unless-stopped