Spaces:
Sleeping
Sleeping
File size: 313 Bytes
2161081 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# Use Node.js image
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package.json and install dependencies using Yarn
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
# Copy project files
COPY . .
# Expose the port
EXPOSE 5000
# Start the backend server
CMD ["yarn", "start"]
|