Skip to content

Commit 19fffa4

Browse files
committed
fix: include package-lock.json for CI caching
1 parent 9bd6a59 commit 19fffa4

3 files changed

Lines changed: 1635 additions & 10 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules/
2-
package-lock.json
32
.env
43
.DS_Store

backend/Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
1-
# Use official Node.js runtime as the base image
21
FROM node:18-alpine as build
32

4-
# Set working directory inside the container
53
WORKDIR /app
64

7-
# Copy package.json and package-lock.json
85
COPY package*.json ./
96

10-
# Install dependencies
117
RUN npm ci
128

13-
# Copy the rest of the application code
149
COPY . .
1510

16-
# Final Stage: Lean production image
1711
FROM node:18-alpine
1812

1913
WORKDIR /app
2014

21-
# Copy only relevant files from build stage
2215
COPY --from=build /app .
2316

24-
# Expose the application port
2517
EXPOSE 5001
2618

27-
# Start the application
2819
CMD ["npm", "start"]

0 commit comments

Comments
 (0)