File tree Expand file tree Collapse file tree 1 file changed +11
-18
lines changed
Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -37,31 +37,24 @@ RUN apt-get update && \
3737# Set working directory
3838WORKDIR /app
3939
40- # Copy only the files needed for dependency installation
41- COPY package.json package-lock.json ./
42-
43- # Install node dependencies
44- RUN npm ci
45-
46- # Copy the rest of the files needed for the build
40+ # Copy everything except node_modules
4741COPY . .
42+ RUN rm -rf node_modules
4843
49- # Install necessary build dependencies
50- RUN npm install -D autoprefixer tailwindcss postcss tailwindcss-animate
51-
52- # Build the application using generic placeholder values (not used at runtime)
53- ENV NODE_ENV=build \
54- BUILD_ONLY=true \
55- HARDWARE_ACCEL=gpu
44+ # Clean install of all dependencies
45+ RUN npm ci
5646
57- # Run the build without any environment variables that would be needed at runtime
58- RUN npm run build
47+ # Build the application
48+ RUN NODE_ENV=production npm run build
5949
6050# Ensure entrypoint script is executable
6151RUN chmod +x docker-entrypoint.sh
6252
53+ # Create directory for Python virtual environment
54+ RUN mkdir -p /scriberr
55+
6356# Expose port
6457EXPOSE 3000
6558
66- # Define default command (entrypoint will read actual environment variables at runtime)
67- CMD ["./docker-entrypoint.sh"]
59+ # Define default command
60+ CMD ["./docker-entrypoint.sh"]
You can’t perform that action at this time.
0 commit comments