Skip to content

Commit

Permalink
only install adapter-node for Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaclen committed Jun 2, 2024
1 parent 0abb4f0 commit 4c4630c
Show file tree
Hide file tree
Showing 4 changed files with 378 additions and 232 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ FROM node:20-alpine

WORKDIR /app

ENV ADAPTER = 'docker-node'

COPY . .

RUN npm ci
RUN npm run build

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

0 comments on commit 4c4630c

Please sign in to comment.