chris b2a3e5d605 fix: Add HEIC/HEIF support and resolve CORS issues
- Add libheif-dev to backend Dockerfile to support HEIC/HEIF image uploads via sharp.
- Update backend URL in frontend to use 'photobackend.beachpartyballoons.com'.
- Update CORS whitelist to include the new backend hostname.
- Stage user's change to docker-compose.yml exposing port 5001.
2025-11-24 19:05:14 -05:00

28 lines
565 B
Docker

# Use a Node.js base image
FROM node:18
# Set the working directory in the container
WORKDIR /usr/src/app
# Install required system libraries for ImageMagick
RUN apt-get update && apt-get install -y \
imagemagick \
ghostscript \
libheif-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install npm dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose port 5000
EXPOSE 5000
# Command to run the application
CMD [ "npm", "start" ]