docker changes

This commit is contained in:
surajkumarsingh03 2024-12-08 19:44:00 +05:30
parent 8879187940
commit 8544137161

View File

@ -1,6 +1,16 @@
FROM node:18-alpine FROM node:18-alpine
# Set the working directory
WORKDIR /app WORKDIR /app
# Copy application code to the container
COPY . . COPY . .
# Install dependencies
RUN yarn install --production RUN yarn install --production
# Expose the port the app runs on
EXPOSE 3000
# Command to run the application
CMD ["node", "src/index.js"] CMD ["node", "src/index.js"]
EXPOSE 3000