Skip to content

Commit

Permalink
fix(frontend): fix the frontend Docker build (#33)
Browse files Browse the repository at this point in the history
Migrating to Vite broke the frontend Docker build. This commit updates the Dockerfile to reflect file changes in the Vite build, and fixes a broken type declaration for SVG modules.
  • Loading branch information
eatyourgreens authored Jun 5, 2024
1 parent 9148d8f commit abffc13
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY package.json package-lock.json ./
RUN npm ci
COPY public public
COPY src src
COPY tsconfig.json tsconfig-typings.json .eslintrc.js ./
COPY tsconfig.json tsconfig.vite.json eslint.config.js vite.config.ts index.html ./
# build to static site
RUN npm run build

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
]
}
},
"include": ["src", "vite-env.d.ts"],
"include": ["src"],
"references": [{ "path": "./tsconfig.vite.json" }]
}

0 comments on commit abffc13

Please sign in to comment.