Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:24-alpine AS build
FROM node:24-slim
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
# Set build arguments with defaults
ARG NODE_ENV=production
ARG NPM_INSTALL_FLAGS=
Expand All @@ -15,15 +15,13 @@
# Copy website files
COPY website/ ./

FROM node:24-alpine

RUN apk add --no-cache ca-certificates && update-ca-certificates
FROM node:24-slim

# Create a non-root user and group
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

# Copy layer wfrom build image
COPY --chown=appuser:appgroup --from=build /app /app

Check failure on line 24 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker-lint

DL3022 warning: `COPY --from` should reference a previously defined `FROM` alias

# Switch to non-root user
USER appuser
Expand Down
Loading