Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
2 changes: 1 addition & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/, ''),
}
Expand Down