added Dockerfile

This commit is contained in:
Jonathan Jara 2025-04-22 21:53:22 -07:00
parent 06a43a69f4
commit fbc6705b19
2 changed files with 21 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -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"]

7
revsocial.yaml Normal file
View File

@ -0,0 +1,7 @@
services:
revsocial:
build: .
container_name: revsocial
ports:
- "5000:5000"
restart: unless-stopped