feat: docker config

This commit is contained in:
karishmas6
2024-10-25 23:10:41 +05:30
parent 98e51141a3
commit 44b9f3518d

19
server/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY backend/package*.json ./
# Install dependencies
RUN npm install --production
# Copy the backend code
COPY backend/ ./
# Expose the API port (8080 for the backend)
EXPOSE 8080
# Start the backend server
CMD ["npm", "start"]