Skip to content

Commit

Permalink
Create requirements.txt if it doesn't exist (#647)
Browse files Browse the repository at this point in the history
* Create requirements.txt

This resolves:
Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
The command '/bin/sh -c python3 -m pip install -r requirements.txt' returned a non-zero code: 1

* Create requirements.txt if it doesn't exist

This resolves:
Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
The command '/bin/sh -c python3 -m pip install -r requirements.txt' returned a non-zero code: 1
  • Loading branch information
lloydchang authored and StephenWeatherford committed Dec 6, 2018
1 parent a29573d commit d4c1b3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configureWorkspace/configure_python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ WORKDIR /app
ADD . /app
# Using pip:
RUN if [ ! -f requirements.txt ]; then pip3 freeze > requirements.txt; fi
RUN python3 -m pip install -r requirements.txt
CMD ["python3", "-m", "${serviceNameAndRelativePath}"]
Expand Down

0 comments on commit d4c1b3e

Please sign in to comment.