Skip to content

Commit

Permalink
docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-nagaraj committed Aug 31, 2024
1 parent 0be38f6 commit af2217e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:18-alpine

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 5000

CMD ["npm", "start"]
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import authenticateToken from './utils/verify.js';
dotenv.config();

const app = express();
const port = process.env.PORT || 3000;
const port = process.env.PORT || 5000;

app.use(express.json());
app.use(cors());
Expand Down
11 changes: 11 additions & 0 deletions socket/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:18-alpine

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "start"]

0 comments on commit af2217e

Please sign in to comment.