Skip to content

Commit

Permalink
fix: update dependencies and Docker configuration (#262)
Browse files Browse the repository at this point in the history
- Closes #259 
- Updates dependencies
  • Loading branch information
fmaclen authored Jan 26, 2025
1 parent bc50b03 commit 4b59bb8
Show file tree
Hide file tree
Showing 3 changed files with 2,633 additions and 2,173 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
FROM node:20-alpine

# Create non-root user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup

WORKDIR /app

ENV PUBLIC_ADAPTER='docker-node'

COPY . .

RUN npm ci
RUN npm run build
# Change ownership of the application files to the non-root user
RUN chown -R appuser:appgroup /app

# Install dependencies and build as root
RUN npm ci && npm run build

# Switch to non-root user
USER appuser

CMD ["npx", "vite", "preview", "--host"]
Loading

0 comments on commit 4b59bb8

Please sign in to comment.