Skip to content

Commit

Permalink
Merge pull request #22 from verypossible/feature/pythonpath
Browse files Browse the repository at this point in the history
Adding python path to base serverless container
  • Loading branch information
brianz authored Jan 17, 2018
2 parents 5e9bc0c + 888b994 commit 5113a26
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ RUN curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VER
RUN echo "alias ll='ls -alFh --color=auto'" >> /root/.bashrc
RUN echo "alias l='ls -alFh --color=auto'" >> /root/.bashrc

# assuming that your serverless python libs live here
RUN echo "export PYTHONPATH=/code/serverless/lib" >> /root/.bashrc

RUN mkdir /code
WORKDIR /code
3 changes: 3 additions & 0 deletions Dockerfile-python3
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ RUN curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VER
RUN echo "alias ll='ls -alFh --color=auto'" >> /root/.bashrc
RUN echo "alias l='ls -alFh --color=auto'" >> /root/.bashrc

# assuming that your serverless python libs live here
RUN echo "export PYTHONPATH=/code/serverless/lib" >> /root/.bashrc

RUN mkdir /code
WORKDIR /code
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ py3 :
--build-arg YARN_VERSION=$(YARN_VERSION) \
.

shell :
py2-shell :
docker run --rm -it $(NAME):$(VERSION) bash

py3-shell :
docker run --rm -it $(NAME):$(VERSION)-python3 bash

0 comments on commit 5113a26

Please sign in to comment.