Skip to main content

Questions tagged [dockerfile]

A Dockerfile is a file containing instructions to build a Docker image.

dockerfile
-1 votes
0 answers
16 views

How to provide a file to a Docker container at runtime and ensure it is accessible during container execution?

I'm working on a project where I need to provide a text file to a Docker container at runtime. This file must be accessible and used by the container during its execution. The bottom line is that the ...
prostwp's user avatar
0 votes
0 answers
27 views

Getting "'4.4*' for 'r-base' was not found" error while installing R 4.4.1 version using bookworm image as base

# Start with a base Debian image FROM python:3.13-rc-bookworm ARG R_VERSION=4.4.1 # Set environment variables ENV PYTHONUNBUFFERED 1 ENV DEBIAN_FRONTEND noninteractive # Install system dependencies ...
Neeraj's user avatar
  • 1
0 votes
0 answers
27 views

Cannot write to `/dev/stdout` or `/dev/stderr` when starting a docker container with `root` and then dropping to a non-privileged user [closed]

Situation When creating a docker container (with docker run oder docker compose up) the USER defined in the image (Dockerfile) is used to create the hole filesystem inside the container. Problem When ...
bjoern-nowak's user avatar
0 votes
1 answer
18 views

Listener doesnt start in custom oracle docker image [closed]

Hell world! I am trying to make a custom Docker image for an oracle db. I have thereofore created the following Dockerfile just to test my change: FROM container-registry.oracle.com/database/free:23.4....
Maria Rona's user avatar
0 votes
0 answers
24 views

Upgraded to node:22-alpine from 16-alpine and `.bin` stopped appearing in `node_modules`

This is in a gitlab runner. Wiped cache. It works fine locally. Any ideas for debugging this?
colemars's user avatar
  • 1,057
-3 votes
0 answers
18 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 ...
Hukmaram's user avatar
  • 527
0 votes
1 answer
11 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. ...
MarcoLe's user avatar
  • 2,469
1 vote
1 answer
53 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 ...
deesolie's user avatar
  • 988
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 '...
AmiyaG's user avatar
  • 172
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 ...
Thalles Passos's user avatar
0 votes
1 answer
22 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- ...
shivank01's user avatar
  • 1,055
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 ...
Lycan's user avatar
  • 31
0 votes
0 answers
28 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 ...
Retrospect's user avatar
0 votes
0 answers
39 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 ...
Alexu's user avatar
  • 1,145
-1 votes
1 answer
25 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 -...
PHP Addict's user avatar

15 30 50 per page
1
2 3 4 5
1073