Category : script

I’m trying to declare one env var with a Script in my dockerfile. Dockerfile COPY ./Service/conf/preproduction.cfg /config/preproduction.cfg COPY ./Service/conf/production.cfg /config/acalls-service/production.cfg COPY ./entrypoint.sh ./ RUN ["chmod", "+x", "./entrypoint.sh"] ENTRYPOINT ["./entrypoint.sh"] Script #!/bin/bash profile=$profile export SETTINGS=/config/acalls-service/${profile}.cfg python -m "acalls_clasiffier" exec When I tried to use "set" Settings doesn’t appear but if I run the exact command inside ..

Read more

I’m currently trying to mount a Docker container directory to my local host directory. My local folder has the path C:/Users/lp/local_env-Returns/ and has the following files: cmi_forecast_script.py , Dockerfile, requirements.txt , .dockerignore and sales_data.xlsx. I’m running the Python script when I run the Docker container of the Dockerfile. This creates a csv_file in my Docker ..

Read more