From fbc6705b19ffec708ee544feb80152cf0c4a1cdb Mon Sep 17 00:00:00 2001 From: Jonathan Jara Date: Tue, 22 Apr 2025 21:53:22 -0700 Subject: [PATCH] added Dockerfile --- Dockerfile | 14 ++++++++++++++ revsocial.yaml | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 revsocial.yaml 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