Skip to content

Commit

Permalink
Added missing Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Oct 24, 2023
1 parent 97fd0c4 commit 58dc444
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 23 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM node:alpine AS build

WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:alpine AS deploy-node
WORKDIR /app
COPY --from=build /app/build .
COPY --from=build /app/package.json .
COPY --from=build /app/node_modules ./node_modules
EXPOSE 5173

# Default Port
ENV PORT=5173
# Default ENV variables for communication with clouditor engine
ENV PUBLIC_OAUTH_AUTH_URL=http://localhost:8080/v1/auth/authorize
ENV PUBLIC_OAUTH_TOKEN_URL=http://localhost:8080/v1/auth/token
ENV PUBLIC_OAUTH_CLIENT_ID=dashboard
ENV PUBLIC_OAUTH_REDIRECT_URI=http://localhost:5173/callback
ENV PUBLIC_OAUTH_SCOPE="profile email"
ENV PUBLIC_CLOUDITOR_URL=http://localhost:8080
CMD ["node", "index.js"]
231 changes: 211 additions & 20 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@rgossiaux/svelte-headlessui": "^2.0.0",
"@steeze-ui/heroicons": "^2.2.3",
"@steeze-ui/svelte-icon": "^1.4.1",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/kit": "^1.27.0",
"@tailwindcss/forms": "^0.5.3",
"@typescript-eslint/eslint-plugin": "^5.45.0",
Expand All @@ -39,4 +39,4 @@
"vite": "^4.5.0"
},
"type": "module"
}
}
2 changes: 1 addition & 1 deletion 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 58dc444

Please sign in to comment.