Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
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
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,11 @@ WORKDIR /app
RUN addgroup -g 1001 -S nodejs && \
adduser -S sveltekit -u 1001

# Copy built app and production dependencies (includes native better-sqlite3)
# Copy built app and production dependencies
COPY --from=builder --chown=sveltekit:nodejs /app/build ./build
COPY --from=builder --chown=sveltekit:nodejs /app/node_modules ./node_modules
COPY --from=builder --chown=sveltekit:nodejs /app/package.json ./

# better-sqlite3 native addon needs libstdc++ at runtime
RUN apk add --no-cache libstdc++

# Switch to non-root user
USER sveltekit

Expand Down
Loading