Skip to content

Commit ebda09a

Browse files
committed
renamed project, updated dependencies, optimized Docker build
1 parent 853adfe commit ebda09a

File tree

3 files changed

+386
-366
lines changed

3 files changed

+386
-366
lines changed

src/Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
FROM node:22-slim
1+
FROM node:22.21.1-alpine
22

3-
# Set the working directory
43
WORKDIR /app
54

6-
# Copy package files first for better layer caching
75
COPY package*.json ./
86

9-
# Install dependencies (this layer will be cached unless package files change)
10-
RUN npm ci --only=production --quiet --no-fund --no-audit && npm cache clean --force
7+
RUN --mount=type=cache,target=/root/.npm npm ci --only=production --quiet --no-fund --no-audit && npm cache clean --force
118

12-
# Copy source code
139
COPY . .
1410

15-
# Cloud Run expects the container to listen on PORT (default 8080)
1611
ENV PORT=8080
1712

18-
# Use Functions Framework to serve the app
19-
CMD ["npx", "functions-framework", "--target=app"]
13+
CMD ["npx", "functions-framework", "--target=app"]

0 commit comments

Comments
 (0)