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

Error with loading the dockerfile #6

Open
wr125 opened this issue Sep 11, 2021 · 0 comments
Open

Error with loading the dockerfile #6

wr125 opened this issue Sep 11, 2021 · 0 comments

Comments

@wr125
Copy link

wr125 commented Sep 11, 2021

Do I need to create a directory first before running docker-compose up?

Step 10/15 : COPY --from=builder /user/group /user/passwd /etc/
---> d2759607a2b6
Step 11/15 : COPY --from=builder /app /app
---> 968a53ad1797
Step 12/15 : COPY --from=builder /src/keys /keys
ERROR: Service 'api' failed to build: COPY failed: stat /var/lib/docker/overlay2/9797b2686db84a3fb6749d9842ba7cd38b3bb866593436266df9370aed46d660/merged/src/keys: no such file or directory

tried to run the go run server.go file and received panic: Env key missing ENV
What would be the correct .env file? I have the following
POSTGRES_HOST = 127.0.0.1
POSTGRES_PORT = 3306
POSTGRES_USER = name
POSTGRES_DB = restdb
POSTGRES_PASSWORD = password
DATABASE_URL = postgres://{user}:{password}@{hostname}:{port}/{database-name}

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

No branches or pull requests

1 participant