in Education by
I have tried to build a docker image based on mono to serve a docfx documentation. Here is my dockerfile code : FROM mono:latest #Set environment ENV DOCFX_VER 2.40.12 COPY entrypoint.sh / RUN apt-get update \ && apt-get -y install wget zip \ && mkdir -p /opt/docfx \ && wget -q https://github.com/dotnet/docfx/releases/download/v${DOCFX_VER}/docfx.zip \ && sha512sum docfx.zip \ && docfx_sha512='11b8bee1079b7a8afcaad0927caaa166553471582d634b30e2392d78c80c012071bded7fd9fa1335782b4194cc42a189737a1985c6dcf2066ce0f872de39b3b6' \ && echo "$docfx_sha512 docfx.zip" | sha512sum -c - \ && unzip docfx.zip -d /opt/docfx/ \ && rm docfx.zip \ && apt-get -y purge wget zip \ && rm -rf /var/cache/apt/* \ && chmod 755 /entrypoint.sh \ && adduser \ --uid 1000 \ --shell /bin/false \ --no-create-home \ --gecos "" \ --disabled-password \ --disabled-login \ docfx \ && chmod 755 /entrypoint.sh COPY . /doc USER docfx EXPOSE 8080 WORKDIR /doc ENTRYPOINT [ "/entrypoint.sh" ] The entrypoint.sh is : #!/bin/sh set -e DOCFX_CMD=/opt/docfx/docfx.exe mono "$DOCFX_CMD" serve -p 8080 . The build is done and succeed : docker build -t docfxtest . When I run the image I get the following : PS E:\Projects\Moon\US-119\docfx> docker logs 67f6e241ff75 Serving "/doc" on http://localhost:8080 PS E:\Projects\Moon\US-119\docfx> The container stopped. I have tested it on docker for windows. As I am still a newbie on docker, I might have missed something. Can someone help me to understand the problem? My built docker image is availabl there : docker push shoattraceparts/docfxtest:latest Thanks, JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I found this solution, which totally differnt approach. I use the following command # Image source FROM nginx:alpine # Copy static assets into var/www COPY _site /usr/share/nginx/html

Related questions

0 votes
    So I have a Nginx running inside a docker container, I have a mysql running on the host system, I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    Now that links are deprecated in docker-compose.yml (and were able to use the new networking feature to ... docker-compose.yml? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I want to expose multiple ports to the machine’s interface. How to achieve this using a docker container? Please help. Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    So I am trying to build a docker image with the Golang SDK, everything runs except the section in ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 17, 2022 in Education by JackTerrance
0 votes
    I have a dump.sql file that I would like to load with docker-compose. docker-compose.yml: services: postgres: ... how to do this? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I have a dump.sql file that I would like to load with docker-compose. docker-compose.yml: services: postgres: ... how to do this? Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    I'm looking for a way to configure Nginx to access hosted services through a subdomain of my server. Those services ... me with this? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Do I need to use separate Docker containers for my complex web application or I can put all required services in ... in one container? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Can someone help me to differentiate between DevOps and Docker? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    My docker-compose file has some running docker files to create my containers. I don't want the docker files ... docker-compose syntax? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    I am unable to find the containers under the directory: /var/lib/docker/containers Can you please tell me the ... the host machine? Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    I have created a docker image. I want to push it into my docker repo but I am facing this error: denied: ... to the resource is denied Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    I'm trying to deploy a Docker container image to AWS using ECS, but the EC2 instance is not being created. I have ... , to begin with!! Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Does containerization affect a programming language being compiled/interpreted ? Eg: Python is interpreted. C is ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    Question I am trying to run a single Kafka instance in docker. I can create topics but cannot consume ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
...