Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Vite Configuration and Add Docker Support #143

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Declare the base image
FROM node:20-alpine3.18

# 1. copy package.json and package-lock.json to /app dir
RUN mkdir /app
COPY package*.json /app

# 2. Change working directory to newly created app dir
WORKDIR /app

# 3 . Install dependencies
RUN npm ci

# 4. Copy the source code to /app dir
COPY . .

# 5. Expose port 3000 on the container
EXPOSE 3000

# 6. Run the app
CMD ["npm", "run", "start"]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### If you want to try it with Docker, just run the command

```sh
docker compose up --build -d
```

## Stack used

- [React](https://reactjs.org/)
Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'
services:
qdrant-web-ui:
container_name: qdrant-web-ui-ctn
build: .
ports:
- '3000:3000'
networks:
- qdrant-web-ui-net
restart: unless-stopped
networks:
qdrant-web-ui-net:
driver: bridge
Loading