Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

'geoip' failed to build: COPY failed #27

Open
tiofabby opened this issue Mar 12, 2019 · 0 comments
Open

'geoip' failed to build: COPY failed #27

tiofabby opened this issue Mar 12, 2019 · 0 comments

Comments

@tiofabby
Copy link

Hi,
I am trying to build freegeoip image from a docker-compose file but without success so far.
I am getting below issue indeed:

[root@vps....]# docker-compose up -d
Building geoip
Step 1/8 : FROM golang:1.9
 ---> ef89ef5c42a9
Step 2/8 : COPY cmd/freegeoip/public /var/www
ERROR: Service 'geoip' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder927407744/cmd/freegeoip/public: no such file or directory

This is what I have in my v3 docker-compose file:
Dockerfile of freegeoip being in /freegeoip folder

geoip:
   build: freegeoip
   network_mode: "host"
   environment:
   - FREEGEOIP_INTERNAL_SERVER=:8888
   - FREEGEOIP_HTTP=:9090
   logging:
     driver: "json-file"
     options:
       max-size: "5m"
       max-file: "2"

Am I doing something wrong?

Thank you
Fabrice

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant