25 lines
416 B
Plaintext
25 lines
416 B
Plaintext
FROM node:18-alpine
|
|
|
|
# Install required tools
|
|
RUN apk add --no-cache curl mysql-client python3 make g++
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files first for better caching
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install --production
|
|
|
|
# Copy application code
|
|
COPY . .
|
|
|
|
# Create uploads directory
|
|
RUN mkdir -p /app/uploads/medical
|
|
|
|
# Expose the port
|
|
EXPOSE 3000
|
|
|
|
# Start the server
|
|
CMD ["node", "server.js"]
|