This commit reflects an intentional reorganization of the project. - Deletes obsolete root-level files. - Restructures the admin and gallery components. - Tracks previously untracked application modules.
27 lines
547 B
Docker
27 lines
547 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 \
|
|
&& 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" ]
|