chris 746868d720 Add 'main-site/' from commit '5cefb4d1618bc54ae0e86830421a8c911900302c'
git-subtree-dir: main-site
git-subtree-mainline: 4d1daa39101c0a85ca6d916f1c31139faf39632a
git-subtree-split: 5cefb4d1618bc54ae0e86830421a8c911900302c
2026-04-13 19:22:17 -04:00

31 lines
615 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 \
libheif1 \
libheif-dev \
libde265-0 \
libvips-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" ]