diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..19ad46a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM oven/bun:1 +WORKDIR /usr/src/app + +COPY ./backend/src ./src +COPY ./backend/scripts/ ./scripts +COPY ./backend/package.json ./ + +RUN bun install +RUN bun dbinit all +RUN chmod 666 database.sqlite + +# run the app +USER bun +EXPOSE 3000/tcp +ENTRYPOINT [ "bun", "run", "src/index.ts" ] \ No newline at end of file diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index d8f6e77..033e0b4 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ server: { proxy: { '/api': { - target: 'http://localhost:3000', + target: 'https://splitit-s3is.onrender.com', changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ''), }