Add custom Dockerfile workflow example#228
Add custom Dockerfile workflow example#228dschep merged 2 commits intoserverless:masterfrom alexjurkiewicz:custom-docker-dependencies
Conversation
dschep
left a comment
There was a problem hiding this comment.
Good idea! But why not use the dockerFile option? Then you can skip the build step! and the config would be
custom:
pythonRequirements:
dockerFile: ./Dockerfile|
Hm, actually the Docker support doesn't quite do what I want. I want to add the file Current build process:
After running |
|
I've updated the docs to handle both cases:
If there's a better way to implement 2 than "copy them into your repo" I'm all ears. Couldn't figure it out myself though :( |
|
As for step2. that's fine 👍 |
|
Thanks for the feedback. Unfortunately I had issues installing packages into FROM lambci/lambda:build-python3.6
RUN yum install -y mysql-devel
WORKDIR /var/task
There are some workarounds in this thread of the issue:
Only the last one helped. If you like, I can change the example to use that (with a comment referencing the bug) with the lambci container? |
dschep
left a comment
There was a problem hiding this comment.
Ah, I see. That's good enough reason for me.
As per #101.