Skip to content

Commit

Permalink
Avoid ".svelte-kit/tsconfig.json not found" error
Browse files Browse the repository at this point in the history
By making the .svelte-kit directory (produced by svelte-kit sync) part
of the docker image in dev mode, we can avoid having the viewer build
fail the first time, which causes the container to restart unnecessarily.
  • Loading branch information
rmunn committed Nov 26, 2024
1 parent 6abf1e6 commit 52a1c10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ COPY . /app/
COPY src /app/src
COPY static /app/static
ENV DockerDev=true
RUN pnpm svelte-kit sync
CMD [ "pnpm", "run", "-r", "--include-workspace-root", "lexbox-dev" ]

0 comments on commit 52a1c10

Please sign in to comment.