Skip to content

Commit

Permalink
chore(ci): node 22 (and drop alpine) (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored May 22, 2024
1 parent 80fe4ad commit a85e82b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
FROM node:20-bullseye-slim AS builder
# Build static files
FROM node:22.2.0-slim AS build
WORKDIR /app
COPY *.json ./
RUN npm ci --omit=dev --ignore-scripts
COPY ./src ./src

# Deployment container
# Deployment container
FROM gcr.io/distroless/nodejs20:nonroot
FROM gcr.io/distroless/nodejs22:nonroot
ENV NODE_ENV production

# Copy over app
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/src ./src
COPY --from=build /app/node_modules ./node_modules
COPY ./src ./src

# Expose port - mostly a convention, for readability
EXPOSE 3000
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build static files
FROM node:alpine AS build
FROM node:22.2.0-slim AS build

WORKDIR /app
COPY . .
Expand Down

0 comments on commit a85e82b

Please sign in to comment.