mirror of
https://github.com/shadoll/sLogos.git
synced 2026-02-04 02:53:22 +00:00
feat: Initialize Svelte application with logo gallery functionality
- 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.
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user