Skip to content

Commit

Permalink
Add first version of the dockerization
Browse files Browse the repository at this point in the history
  • Loading branch information
MikelElizondo committed Mar 12, 2024
1 parent cef2eb5 commit 9173ebe
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .Dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*compose*
*Dockerfile*
node_modules
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:20

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

CMD ["npm", "start"]
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
docusaurus:
build:
context: .
ports:
- '3000:3000/tcp'
volumes:
- './docs:/app/docs'
- './src:/app/src'
- './static:/app/static'
- './docusaurus.config.js:/app/docusaurus.config.js'
- './sidebars.js:/app/sidebars.js'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"start": "docusaurus start --host 0.0.0.0",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
Expand Down

0 comments on commit 9173ebe

Please sign in to comment.