这是indexloc提供的服务,不要输入任何密码
Skip to content

.env credentials file is included with Docker image? Needs .dockerignore file? #11

@hartwork

Description

@hartwork

Hi @rasulkireev,

I noticed that .env (and also the .git folder) make its way into the Docker image. Both could be a security risk, depending on threat model.

# docker compose run backend ls -l /app/.env
[..]
-rw-r--r-- 1 1000 1000 767 Feb  9 14:32 /app/.env

A solution could be a .dockerignore file.

Best, Sebastian

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