Skip to content

Commit

Permalink
#21 add node adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rauh committed Apr 13, 2023
1 parent a5bc9dc commit dd8a000
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Dockerfile-svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:19-alpine AS build

WORKDIR /app

COPY web-frontend/package.json ./
RUN npm install
COPY web-frontend/static ./static
COPY web-frontend/src ./src
COPY web-frontend/svelte.config.js web-frontend/tsconfig.json web-frontend/vite.config.ts ./
RUN npm run build

FROM node:19-alpine
COPY --from=build /app/package.json /app/package-lock.json ./
RUN npm ci --omit dev
COPY --from=build /app/build ./build
ENTRYPOINT ["node", "build"]
226 changes: 226 additions & 0 deletions web-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"devDependencies": {
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-node": "^1.2.3",
"@sveltejs/kit": "^1.5.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
Expand Down
2 changes: 1 addition & 1 deletion web-frontend/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
Expand Down

0 comments on commit dd8a000

Please sign in to comment.