RohanVashisht commited on
Commit
1fca37b
·
1 Parent(s): e3924d1
Files changed (2) hide show
  1. Dockerfile +4 -1
  2. src/index.ts +2 -2
Dockerfile CHANGED
@@ -6,10 +6,13 @@ ENV PATH="/home/user/.bun/bin:$PATH"
6
 
7
  WORKDIR /app
8
 
 
 
 
9
  COPY --chown=user . .
10
 
11
  RUN bun install
12
 
13
  EXPOSE 7860
14
 
15
- CMD ["bun", "./src/index.ts"]
 
6
 
7
  WORKDIR /app
8
 
9
+ # Clone the repository
10
+ RUN git clone https://github.com/zigistry/database
11
+
12
  COPY --chown=user . .
13
 
14
  RUN bun install
15
 
16
  EXPOSE 7860
17
 
18
+ CMD ["bun", "./src/index.ts"]
src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
  import { serve } from "bun";
2
- import packages from "../database/packages.json";
3
- import programs from "../database/programs.json";
4
 
5
  serve({
6
  port: 7860,
 
1
  import { serve } from "bun";
2
+ import packages from "../database/database/packages.json";
3
+ import programs from "../database/database/programs.json";
4
 
5
  serve({
6
  port: 7860,