feat(docker): add docker support

This commit is contained in:
2025-12-04 17:22:49 +07:00
parent fa781f037a
commit 35feb20926
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["node", "server.js"]
+7
View File
@@ -0,0 +1,7 @@
import app from './index.js';
const PORT = process.env.PORT || 3000;
app.listen(PORT, '0.0.0.0', () => {
console.log(`Server is running on port ${PORT}`);
});