diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fe2bba5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +name: rocky + +services: + backend: + build: + context: . + dockerfile: rocky-backend/Dockerfile + networks: + - rocky-network + + + frontend: + build: + context: . + dockerfile: rocky-interface/Dockerfile + ports: + - "3000:4173" + networks: + - rocky-network + + +networks: + rocky-network: + driver: bridge \ No newline at end of file diff --git a/rocky-interface/Dockerfile b/rocky-interface/Dockerfile new file mode 100644 index 0000000..9dc529b --- /dev/null +++ b/rocky-interface/Dockerfile @@ -0,0 +1,21 @@ +FROM oven/bun:latest + +WORKDIR /app + +COPY rocky-interface/ ./ + + +RUN bun install +COPY . ./ + + +WORKDIR /app/rocky-frontend + +RUN bun run build + + + + +EXPOSE 4173 + +CMD ["bun", "preview"] \ No newline at end of file diff --git a/rocky-interface/tsconfig.json b/rocky-interface/tsconfig.json index 2c2ed3c..053351a 100644 --- a/rocky-interface/tsconfig.json +++ b/rocky-interface/tsconfig.json @@ -2,8 +2,7 @@ "extends": "./.svelte-kit/tsconfig.json", "compilerOptions": { "rewriteRelativeImportExtensions": true, - "allowJs": true, - "checkJs": true, + "allowJs": false, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, diff --git a/rocky-interface/vite.config.ts b/rocky-interface/vite.config.ts index cd1be3a..7da1c24 100644 --- a/rocky-interface/vite.config.ts +++ b/rocky-interface/vite.config.ts @@ -4,6 +4,8 @@ import { defineConfig } from 'vite'; export default defineConfig({ plugins: [sveltekit()], server: { + allowedHosts: ['scorpion.cs.kent.edu'], + host: '0.0.0.0', port: 5000 } });