Category "dockerfile"

Inject a binary into a Docker Image

I need to create automation to inject a binary (security tool) to every docker image(pre-built) that is going to be promoted to higher envs (Promote To Prod), w

Set Java/JRE default settings which can be overridden by JAVA_TOOL_OPTIONS

I have multiple java spring boot services, which are running in docker containers and are configured via docker-compose. Each of those services need several jav

Dockerfile: Cannot find module '/usr/src/app/dist/main' - Dist folder does not exists on container

I'm having the following error when trying to execute my NestJS App with Docker: > [email protected] start:prod > node dist/main node:internal/modules/cj

Node gRPC returns "No status received" when deployed on Cloud Run with Docker

After deploying my server on Cloud Run, calling the endpoint with BloomRPC or other clients, the service returns "error": "2 UNKNOWN: No status received". Calli

unable to locate package "software-properties-common" docker image

I am trying to create an ubuntu focal image using docker file. I have this line in my dockerfile: FROM ubuntu:focal AS systemdependencies RUN apt update \

Create Postgres Docker Image with Database

How to Create Postgres Docker Image with Data? I have this folder/file structure: - initdb - 01-createSchema.sql - 02-createData.sql - Dockerfile The Docke

docker-compose with podman won't allow to run entrypoint

I use Fedora 35 Silverblue. I followed this article on how to make podman and docker-compose friends in rootless mode. I made a simple project: . ├─

Should I put the base image in all project's images?

Ok, my question is all about Am I doing it right? if not, what's the best practice? Recently I've used Docker for my project. Currently, I build a new docker

Docker npm install --production not working

I have a dockerfile where I am using alpine-nodejs version 16 as the base image. The npm version is 8. When the step of npm install --production is executed whi

Error response from daemon: failed to create shim when installing Nodejs

I am trying to create a docker image with node.js version 16. However I failed to find solution to this problem despite searching stackoverflow and other platfo

Docker Container not loading static files from Django-React Project

I've been trying to get my main.js file and css static files to load in my container and on google cloud for the past 4 days. Here is my file tree: main/ - fr

Fetch secrets and certificates from AzureKeyVault inside Docker container

I have a .net framework console application. Inside this application, I'm fetching secrets and certificates from keyvault using tenantId, client Id and Client S

Dockerfile RUN instruction not working correctly when using jelastic/nginxphp

I just started with Jelastic and I'm trying to create a container based on jelastic/nginxphp:1.20.2-php-8.0.13. The final goal is to integrate my Symfony develo

Can Docker CLI, Podman and other similar tools have shared local storage for images?

I recently started using podman and realized that images pulled via docker doesn't become available for use to podman and vice-versa. For example:- If I pull th

--target option of docker build command doesn't work in aws codeBuild

I use a multi stages docker build for my aws codeBuild to build my application. The shape of my docker file is : FROM strapi/base:14-alpine AS dependencies ...

How do I run gitlab on kubernetes?

The task I carreid out ↓ Hyper-V, Ubuntu 20.04, k8s 1.23.6, Docker 20.10.14 Installation Set up a K8s Cluster(Control Plane 1EA, Worker node 1EA) kubectl

Problem about dockerizing a NestJS app with Prisma and PostgreSQL

I am trying to build a NestJS app with Prisma and PostgreSQL. I want to use docker; however, I got an error when I sent the request to the backend. Here is my d

Unable to run serve -s build inside docker image for my react application

I'm trying to run my react application using the build folder via docker file. Everything seems to run properly when tried without docker, but when i run using

Docker errors when trying to build in ARM64 Apple M1: "Failed to resolve full path of the current executable [/proc/self/exe]"

I'm having trouble building docker containers on an Apple M1 The project uses sdk 2.2 which is incompatible with arm64 architecture. So I changed the sdk and as

dockerfile copying folder after a jest test completes

Is there a way to copy test results directory from running container before it shuts down? ... COPY tests tests ... CMD ["yarn", "test"] COPY /home/node/project