We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ed9cd commit bb5b409Copy full SHA for bb5b409
Dockerfile
@@ -6,10 +6,25 @@ WORKDIR /async
6
# Install development dependencies
7
COPY package.json package-lock.json ./
8
RUN npm install
9
+# Install dependencies
10
+RUN npm ci
11
12
# Copy the rest of the application files
13
COPY . .
14
15
+
16
+# Run linting during build to catch errors early
17
+RUN npm run lint || exit 1
18
19
+# Use a separate production stage to keep the image lightweight
20
+FROM node:18-alpine AS development
21
22
+# Set working directory
23
+WORKDIR /async
24
25
+# Copy node_modules and built files from builder stage
26
+COPY --from=builder /async /async
27
28
# Expose the port for development (if needed)
29
EXPOSE 3000
30
0 commit comments