Skip to content

Commit 60218c6

Browse files
committed
add dockerfile support
1 parent 75bf9a6 commit 60218c6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,16 @@ This will create a `dist` directory containing the fully built static site, read
150150

151151
## 🐳 Docker Deployment (Optional)
152152

153+
You can use our official Docker image `clidey/dory` to create a static server. Simply create a Dockerfile inside the project and build the following Dockerfile:
154+
155+
```dockerfile
156+
FROM clidey/dory
157+
WORKDIR /app
158+
COPY . .
159+
RUN dory build
160+
CMD ["dory", "preview"]
161+
```
162+
153163
You can also build and run the static site inside a Docker container using Nginx:
154164

155165
### Build Docker Image

0 commit comments

Comments
 (0)