4ch1m/pixoo-rest

Copy python .env file in Dockerfile for docker container build

deepcoder opened this issue · 1 comments

Hello and thank you for your work on this project!

After creating the .env file as specified in the documentation to the same directory as the app.py file, I need to add to the Dockerfile the following line after the 'COPY app.py .' line

COPY .env .
4ch1m commented

The (same) .env file can be used when running the app ...

  • directly

AND

  • via docker-compose.

You should NOT include the .env in the Dockerfile/Docker-image.

Please check: Environment variables in Compose