Skip to content

Commit

Permalink
added dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
yavuzKomecoglu committed Jan 17, 2024
1 parent ef320a0 commit ac61ec7
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.git
.vscode
.dockerignore
.gitignore
.env
config
build
node_modules
docker-compose.yaml
Dockerfile
README.md
.venv
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:alpine
WORKDIR /app
COPY package.json .
RUN yarn
# copy all files
COPY . .
CMD ["yarn", "dev", "--debug"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ https://github.com/xenova/whisper-web/assets/26504141/fb170d84-9678-41b5-9248-a1
> Check out [this issue](https://github.com/xenova/whisper-web/issues/8) for more details.

3. Open the link (e.g., [http://localhost:5173/](http://localhost:5173/)) in your browser.


## Running docker

Build & Run

`docker-compose up -d --build`

10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'

services:
whisper-web:
build: .
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- 5173:5173
8 changes: 8 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@ export default defineConfig({
plugins: [
react()
],
server: {
watch: {
usePolling: true,
},
host: true, // Here
strictPort: true,
port: 5173,
}
})

0 comments on commit ac61ec7

Please sign in to comment.