Category "dockerfile"

Pass variables from .env file to dockerfile through docker-compose

project └───app │ │ ... │ │ Dockerfile │ │ └───prod.env └

Is there a way to set path for docker build with the github action plugin docker/build-push-action@v1

I have a docker build action as below - name: build-push uses: docker/build-push-action@v1 with: username: ${{ DOCKER_USERNAME }

Command is run before the previous one is finished

Consider the following Dockerfile. It attempts to install Visual Studio Build Tools by downloading, installing, and then deleting the installer in a single RUN

How to use a script of a Docker container from CI pipeline

Newbie in Docker & Docker containers over here. I'm trying to realize how can I run a script which is in the image from my bitbucket-pipeline process. Som

--pid=host To Set through DockerFile

I am trying to use the jmap to collect the heapdump. And the application is containerized and lauched on a EC2 Instance. To generate the heapdump the PID got as

--pid=host To Set through DockerFile

I am trying to use the jmap to collect the heapdump. And the application is containerized and lauched on a EC2 Instance. To generate the heapdump the PID got as

error: failed to solve: failed to fetch oauth token: Post "https://auth.docker.io/token": dial tcp: i/o timeout

I'm trying to build a docker image for my java file on my M1 max MacBook, my dockerfile: FROM openjdk:8-alpine COPY . /src/java WORKDIR /src/java RUN ["javac","

node canvas not installing on docker

can anyone help me to figure out this error? so I'm doing node version upgrade and dockerization tasks. we used node js 8.15.1 before now we want to update it t

Can I avoid restarting services on docker-compose up when the service version changes but not the underlying hash?

Is there a way to avoid restarting a service on a docker-compose up when the image version declared in the service definition has changed but the underlying has

Inject AWS Codebuild Environment Variables into Dockerfile

Is there a way to pass AWS Codebuild environment variables into a Dockerfile? I'd like to be able to pull from ECR like this: FROM $My_AWS_ACCOUNT.dkr.ecr.us-

Possible to add kaniko to alpine image or add jq to kaniko image

This is how I'm using kaniko to build docker images in my gitlab CI, which is working great. But I need to read a json file to get some values. Therefore I need

Faster Dockerfile build using ramdisk

We run a build process that compiles multiple artifacts from a large codebase. On a decent spec i7 with SSDs this takes ~20 minutes, however when I shift to usi

docker bind mount not working in react app

I am using docker toolbox on windows home and having trouble figuring out how to get bind mount working in my frontend app. I want changes to be reflected upon

How to apply Dockerfile `git config` values to a non-root user's ssh session?

I have a Dockerfile whose base layer includes git, configures git's global user.name and user.email and that starts openssh-server. The Dockerfile is along the

docker-compose Equivalent to Docker Build --secret Argument

We have used the technique detailed here to expose host environment variables to Docker build in a secured fashion. # syntax=docker/dockerfile:1.2 FROM golang:1

Docker: Can't read class path resource from spring boot application

Reading a classpath resource as, try { final ClassPathResource classPathResource = new ClassPathResource(format("location%sGeoLite2-City.mmdb", Fil

Use buildx build linux/arm64 in docker-compose file

I can build my dockerfile separately using following command: docker buildx build --platform linux/arm64 -t testbuild . now I want to use buildx in docker-co

docker-compose create volume of my app folder and run node command in it

Docker beginner here. I am trying to set up docker for local development. My ultimate goal is to be able to use "vite" to do hot module reloading development se

How to fix the error "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running"

I am trying to spin up a docker container inside another docker container and I get this error: Cannot connect to the Docker daemon at unix:///var/run/docker.s

How to solve network connection when RUN yarn install in docker image build?

I have a peculiar problem occurring only in the Mac environment. When I run the docker build command to build my Node image, it is not able to fetch the package