mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-20 11:32:01 +00:00
- Add Rollup configuration for building and serving the application. - Implement logo scanning script to generate logos.json from logo files. - Create main App component to manage logo display and search functionality. - Develop LogoGrid and LogoList components for different viewing modes. - Add LogoModal component for logo preview with details. - Implement URL copying and logo downloading features. - Style components for improved user experience and responsiveness.
27 lines
459 B
Docker
27 lines
459 B
Docker
FROM node:slim
|
|
|
|
# Update package index and upgrade packages to reduce vulnerabilities
|
|
RUN apt-get update && apt-get upgrade -y
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm install
|
|
|
|
# Copy all source files except those in .dockerignore
|
|
COPY . .
|
|
|
|
# Create necessary directories for the build
|
|
RUN mkdir -p public/build
|
|
RUN mkdir -p public/data
|
|
|
|
# Build the application
|
|
RUN npm run build
|
|
|
|
EXPOSE 5000
|
|
EXPOSE 35729
|
|
|
|
# Start the server
|
|
CMD ["npm", "run", "start"]
|