jurmy24 commited on
Commit
51aa2e1
·
1 Parent(s): e34472c

fix: update docker

Browse files
Files changed (2) hide show
  1. .dockerignore +8 -7
  2. Dockerfile +2 -5
.dockerignore CHANGED
@@ -4,25 +4,26 @@
4
  .gitattributes
5
 
6
  # Node.js dependencies
 
7
  node_modules
8
- npm-debug.log
9
- yarn-debug.log
10
- yarn-error.log
11
 
12
  # Build files
13
  viewer/dist
14
  viewer/build
15
- **/dist
16
- **/build
17
 
18
  # Logs
19
  logs
20
  *.log
 
 
 
21
 
22
  # Environment files (except public ones)
23
  .env
24
  .env.*
25
- !.env.public
26
 
27
  # Editor directories and files
28
  .vscode
@@ -35,7 +36,7 @@ logs
35
 
36
  # OS specific files
37
  .DS_Store
38
- .DS_Store?
39
  ._*
40
  .Spotlight-V100
41
  .Trashes
 
4
  .gitattributes
5
 
6
  # Node.js dependencies
7
+ viewer/node_modules
8
  node_modules
 
 
 
9
 
10
  # Build files
11
  viewer/dist
12
  viewer/build
13
+ dist
14
+ build
15
 
16
  # Logs
17
  logs
18
  *.log
19
+ npm-debug.log
20
+ yarn-debug.log
21
+ yarn-error.log
22
 
23
  # Environment files (except public ones)
24
  .env
25
  .env.*
26
+ !viewer/.env.public
27
 
28
  # Editor directories and files
29
  .vscode
 
36
 
37
  # OS specific files
38
  .DS_Store
39
+ **/.DS_Store
40
  ._*
41
  .Spotlight-V100
42
  .Trashes
Dockerfile CHANGED
@@ -3,15 +3,12 @@ FROM oven/bun:1 as build
3
  # Set working directory
4
  WORKDIR /app
5
 
6
- # Copy package files
7
- COPY viewer/package.json viewer/bun.lockb ./
8
 
9
  # Install dependencies
10
  RUN bun install --frozen-lockfile
11
 
12
- # Copy project files (respecting .dockerignore)
13
- COPY viewer/ ./
14
-
15
  # Build the application
16
  RUN bun run build
17
 
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
+ # Copy the viewer directory with all its contents
7
+ COPY viewer/ .
8
 
9
  # Install dependencies
10
  RUN bun install --frozen-lockfile
11
 
 
 
 
12
  # Build the application
13
  RUN bun run build
14