diff --git a/server/Dockerfile b/server/Dockerfile new file mode 100644 index 00000000..f42c2d21 --- /dev/null +++ b/server/Dockerfile @@ -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"]