Skip to content

Error with loading the dockerfile #6

@wr125

Description

@wr125

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions