Questions tagged [dockerfile]
A Dockerfile is a file containing instructions to build a Docker image.
dockerfile
16,088
questions
-3
votes
0
answers
15
views
/bin/sh: use/sbin/zic: not found [closed]
RUN apk add --no-cache tzdata
RUN wget https://data.iana.org/time-zones/tzdb/tzdata.zi -O /usr/share/zoneinfo/tzdata.zi && /usr/sbin/zic -b fat /usr/share/zoneinfo/tzdata.zi
Above commands ...
0
votes
0
answers
16
views
I'm trying to run a Docker container, but I'm getting an error related to environment variables
I'm trying to build an image with Docker using docker build -t todo-list-api ., and everything is fine. But then when I run docker run, I get an error:
Skipping virtualenv creation, as specified in ...
0
votes
1
answer
8
views
docker buildx does not trigger cache invalidation
Using docker: v27
Using docker buildx plugin: v0.16
It seems that the build cache invalidation is not happening @ a layer where a specific build arg is used to determine an environment variable.
...
0
votes
1
answer
40
views
How to add --init parameter to AWS ECS Task
I have a Docker image that uses Playwright and xvfb. When I run it locally, I run docker run --init -it <image_id> (per this SO answer). Without the --init param, the container will run but will ...
0
votes
1
answer
19
views
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 '...
0
votes
0
answers
29
views
I can't override the entrypoint or CMD from a specific image
I'm trying to add a custom script to add some custom hosts to my docker image (cant use --add-host).
I'm trying to add that script to my image that extends MinIO image on startup but no matter what I ...
0
votes
1
answer
21
views
Dockerfile parser treating ENTRYPONT as a string rather than json [duplicate]
I've a dockerfile with the following entrypoint line:
ENTRYPOINT [
"java",
"-jar",
"service.jar"]
but while building the docker image it is throwing the following error-
...
1
vote
0
answers
27
views
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 ...
0
votes
0
answers
27
views
Deployment Failed with error "ModuleNotFoundError: No module named 'urllib3.packages'" error?
I've been using AWS CodePipeline to execute a CI/CD pipeline. The 'build' stage performs correctly, which uses both the 'Dockerfile' and 'requirements.txt' files, whereas the 'deploy stage' utilizes ...
0
votes
0
answers
37
views
What base image do I use for my .NET 8 app in Linux container
I have an ASP.NET Core 8 Web API that I need to run in a linux container, and I am not using Docker desktop. My problem is that I don't know what the right based to use in my Dockerfile. The first ...
-1
votes
1
answer
23
views
Automatically running "composer install" after container is built
setting up a web development stack with NGinX, PHP and composer.
My docker file looks like this:
FROM php:fpm
# Install dependencies and PHP extensions
RUN apt-get update && apt-get upgrade -...
-1
votes
0
answers
15
views
Docker cloud agent - Use custom image with Launch attached method [closed]
I'm trying to create a Docker cloud agent and I want to launch the container with "Launch attached" method.
In that section, it has suggested to use "jenkins/agent" image as a base ...
0
votes
0
answers
43
views
Multi Ubuntu version targetting from single dockerfile
I am using a single Dockerfile to build images for different Ubuntu versions. Those images are then used in CI to build software targeting those different Ubuntu versions.
Sometimes, there are of ...
0
votes
0
answers
22
views
How to pass argument from gitlab_ci.yml to docker_compose.yml?
I'm new to Gitlab CI and I have a problem in existing project. There's a file VERSION in the root folder which contains version number. I need to:
in the build section of gitlab_ci.yml get version ...
0
votes
0
answers
18
views
GRPC installation in Laravel Docker
I am a beginner in docker . I want to install docker into existing laravel project . The problem is that I want to install grpc for firebase . But , when I install grpc in docker , it's is taking so ...