Skip to content

Commit f7c19f8

Browse files
This commit provides a sample Dockerfile and instructions to build & run it
Signed-off-by: Martin Brooksbank <[email protected]>
1 parent 6a57608 commit f7c19f8

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:20-alpine
2+
3+
WORKDIR /home/node/app
4+
5+
RUN chown -R node:node /home/node/app
6+
7+
USER node
8+
9+
COPY package*.json ./
10+
11+
COPY --chown=node:node . .
12+
RUN yarn install
13+
14+
CMD ["yarn", "start"]

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ Storybook is a development environment for UI components. It allows you to brows
112112
yarn storybook
113113
```
114114

115+
## Docker
116+
117+
You can also run the mini-dashboard with Docker.
118+
119+
```bash
120+
docker build -t meilisearch-mini-dashboard .
121+
docker run -it -e REACT_APP_MEILI_SERVER_ADDRESS=http://localhost:7700 -p 3000:3000 meilisearch-mini-dashboard
122+
```
123+
115124
## Contributing
116125

117126
If you want to contribute to this project, please make sure to read [the contributing guidelines](./CONTRIBUTING.md)

0 commit comments

Comments
 (0)