Skip to content

Commit 7350a47

Browse files
committed
Updated Dockerfile-cuda128 with the changes made to Dockerfile
1 parent 53c412b commit 7350a47

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

Dockerfile-cuda128

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,24 @@ RUN apt-get update && \
3737
# Set working directory
3838
WORKDIR /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
4741
COPY . .
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
6151
RUN chmod +x docker-entrypoint.sh
6252

53+
# Create directory for Python virtual environment
54+
RUN mkdir -p /scriberr
55+
6356
# Expose port
6457
EXPOSE 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"]

0 commit comments

Comments
 (0)