Skip to content

Commit 2f41157

Browse files
committed
feat: add docker container
1 parent 0c47564 commit 2f41157

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

Dockerfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ruby:3.1.1
2+
3+
RUN apt-get update -qq && apt-get install -y build-essential nodejs
4+
5+
WORKDIR /workspace
6+
COPY . /workspace
7+
8+
RUN gem install bundler jekyll
9+
10+
RUN bundle install
11+
12+
EXPOSE 4000
13+
14+
CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0"]
15+

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
# jwsung91.github.io
22

3-
[jwsung91.github.io](https://jwsung91.github.io)
3+
[jwsung91.github.io](https://jwsung91.github.io)
4+
5+
This is a technical blog focused on software engineering topics. The blog is built using the [Chirpy](https://github.com/cotes2020/jekyll-theme-chirpy) theme for [Jekyll](https://jekyllrb.com).
6+
7+
## Using Docker container
8+
9+
### Build
10+
11+
```zsh
12+
docker build --no-cache -t my_space .
13+
```
14+
15+
### Run
16+
17+
```zsh
18+
docker run -it --rm -p 4000:4000 -v $(pwd):/workspace my_space
19+
```

0 commit comments

Comments
 (0)