I am trying to run latest version of jekyll on ubuntu-20.04 container. My container is below.
I am able to build and I see I am able run the site on container. But now, I am unable to get the site exposed to outside world
Run is also success, I see site is running on port 4000.sudo docker build --tag jekyll_site:1.0 .
sudo docker run -p 80:4000 jekyll_site:1.0
FROM ubuntu:20.04
RUN apt update
RUN apt install -y ruby-full
RUN apt-get install -y build-essential zlib1g-dev
RUN gem install jekyll bundler
ENV HOME=/home/user
ENV GEM_HOME=/home/user/gems
ENV PATH=/home/user/gems/bin:$PATH
EXPOSE 4000
RUN ruby --version
RUN gem --version
WORKDIR /home/user/
RUN mkdir -p /home/user/my-awesome-site
RUN jekyll new my-awesome-site
RUN ls /home/user
WORKDIR /home/user/my-awesome-site
CMD bundle exec jekyll serve
Problem
Unable to get the site on port 80. Any thing I am missing here ?