Skip to content

Commit 99ea436

Browse files
feat: adding docker file (#169)
Signed-off-by: SanjaySinghRajpoot <[email protected]>
1 parent 1e90243 commit 99ea436

File tree

4 files changed

+679
-20
lines changed

4 files changed

+679
-20
lines changed

Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Get the Latest Nodejs Version
2+
FROM node:lts
3+
4+
# Create a new work directory called /app
5+
WORKDIR /app
6+
7+
EXPOSE 3000 3000
8+
9+
# Copy the contents of root folder to /app folder
10+
COPY . /app
11+
RUN yarn install
12+
RUN yarn build
13+
14+
CMD ["yarn", "start"]

docker-compose.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: "1"
2+
3+
services:
4+
docusaurus:
5+
build: .
6+
ports:
7+
- 3000:3000
8+
working_dir: /app

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@docusaurus/preset-classic": "^2.0.0-beta.16",
2424
"@mdx-js/react": "^1.5.8",
2525
"clsx": "^1.1.1",
26+
"lint": "^0.8.19",
2627
"react": "^17.0.2",
2728
"react-dom": "^17.0.2",
2829
"react-player": "^2.6.0",

0 commit comments

Comments
 (0)