Relative Content

Tag Archive for dockerdockerfile

Copy file failed in Dockerfile

FROM docker-repo.frontiir.net/container-images/py38-poetry:1.3-slim-bullseye ENV APP_WORKDIR=/app WORKDIR ${APP_WORKDIR} COPY pyproject.toml poetry.lock ./ RUN poetry config virtualenvs.create false && poetry install –quiet –no-root –only=main –no-interaction –no-ansi –no-cache RUN ls -al ./src/ COPY ./src/ . RUN poetry install –only-root –no-interaction –no-ansi –no-cache CMD [ “example”, “–version”] I have a src folder on the same level as this dockerfile. Also, […]

My application has started twice when i’m bringing up my container

I wrote a small c program(asks for user’s name and prints ‘welcome name’) and a dockerfile to copy the program inside a container and execute it. I created the container and it exited after showing ‘welcome name’. But after that whenever I’m starting the container, I can see 2 instances of my program running. I’m unable to understand why?