diff --git a/.dockerignore b/.dockerignore index c216dc15..6fc86f9c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,3 +2,4 @@ worker/transcribee_worker/.data backend/__pypackages__ worker/__pypackages__ frontend/node_modules/ +packaging/Dockerfile diff --git a/frontend/vite.config.js b/frontend/vite.config.js index d28569d6..a44ac90c 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -97,6 +97,7 @@ export default defineConfig({ proxy: { '/api': 'http://127.0.0.1:8000', '/api/v1/documents/sync': { target: 'http://127.0.0.1:8000', ws: true }, + '/media': 'http://127.0.0.1:8000', }, }, plugins: [ diff --git a/packaging/Dockerfile b/packaging/Dockerfile index 5831233c..9d0967ea 100644 --- a/packaging/Dockerfile +++ b/packaging/Dockerfile @@ -16,7 +16,8 @@ RUN nix-shell packaging/shell.nix --command ./packaging/install_dependencies.sh RUN nix-shell packaging/shell.nix --command ./packaging/setup_backend.sh EXPOSE 5173 -EXPOSE 8000 + +ENV MEDIA_URL_BASE=http://localhost:5173/ ENTRYPOINT [ "nix-shell", "packaging/shell.nix", "--command" ]