Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Dockerfile failed on Win 11 + Docker #57

Open
konsultaner opened this issue Nov 25, 2022 · 1 comment
Open

Run Dockerfile failed on Win 11 + Docker #57

konsultaner opened this issue Nov 25, 2022 · 1 comment
Assignees
Labels

Comments

@konsultaner
Copy link

Hi I tried to run the docker file from apache-7.4 with pahlcon-4.1.2. It had build the image but didn't start a container. I'm super new to docker and asking for some help here :)

this is my output when I run the docker file in my intellij

Deploying 'apache-7-4-phalcon-4-1-2 Dockerfile: 7.4/apache/Dockerfile'�
Building image�
Preparing build context archive�
[==================================================>]1/1 files
Done

Sending build context to Docker daemon�
[==================================================>]  594,0B
Done

Step 1/7 : FROM php:7.4-apache
 ---> 20a3732f422b
Step 2/7 : LABEL maintainer="MilesChou <github.com/MilesChou>, fizzka <github.com/fizzka>"
 ---> Using cache
 ---> d345afa5ccef
Step 3/7 : ARG PSR_VERSION=1.1.0
 ---> Using cache
 ---> 7706539c8a52
Step 4/7 : ARG PHALCON_VERSION=4.1.2
 ---> Using cache
 ---> 1ebc79e04b89
Step 5/7 : ARG PHALCON_EXT_PATH=php7/64bits
 ---> Using cache
 ---> 0bfa4ddac463
Step 6/7 : RUN set -xe &&         curl -LO https://github.com/jbboehr/php-psr/archive/v${PSR_VERSION}.tar.gz &&         tar xzf ${PWD}/v${PSR_VERSION}.tar.gz &&         curl -LO https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.tar.gz &&         tar xzf ${PWD}/v${PHALCON_VERSION}.tar.gz &&         docker-php-ext-install -j $(getconf _NPROCESSORS_ONLN)             ${PWD}/php-psr-${PSR_VERSION}             ${PWD}/cphalcon-${PHALCON_VERSION}/build/${PHALCON_EXT_PATH}         &&         rm -r             ${PWD}/v${PSR_VERSION}.tar.gz             ${PWD}/php-psr-${PSR_VERSION}             ${PWD}/v${PHALCON_VERSION}.tar.gz             ${PWD}/cphalcon-${PHALCON_VERSION}         &&         php -m
 ---> Using cache
 ---> 011a4405bc21
Step 7/7 : COPY docker-phalcon-* /usr/local/bin/
Error response from daemon: COPY failed: no source files were specified
Failed to deploy 'apache-7-4-phalcon-4-1-2 Dockerfile: 7.4/apache/Dockerfile': Can't retrieve image ID from build stream
@fizzka
Copy link
Collaborator

fizzka commented Nov 15, 2023

Hi! It seems like you are missing required files from build context.

could you provide your full build command?

@fizzka fizzka self-assigned this Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants