-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for workshop3 app and dockerfiles for python 3
- Loading branch information
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM ubuntu:latest | ||
RUN echo Updating existing packages, installing and upgrading python and pip. | ||
RUN apt-get update -y | ||
RUN apt-get install -y python-pip python-dev build-essential | ||
RUN pip install --upgrade pip | ||
RUN apt-get install -y python3-pip python-dev build-essential | ||
RUN pip3 install --upgrade pip | ||
RUN echo Copying the Mythical Mysfits Flask service into a service directory. | ||
COPY ./service /MythicalMysfitsService | ||
WORKDIR /MythicalMysfitsService | ||
RUN echo Installing Python packages listed in requirements.txt | ||
RUN pip install -r ./requirements.txt | ||
RUN pip3 install -r ./requirements.txt | ||
RUN echo Starting python and starting the Flask service... | ||
ENTRYPOINT ["python"] | ||
ENTRYPOINT ["python3"] | ||
CMD ["mysfits_like.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Flask==1.0.0 | ||
flask-cors==3.0.0 | ||
requests==1.2.3 | ||
requests==2.20.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM ubuntu:latest | ||
RUN echo Updating existing packages, installing and upgrading python and pip. | ||
RUN apt-get update -y | ||
RUN apt-get install -y python-pip python-dev build-essential | ||
RUN pip install --upgrade pip | ||
RUN apt-get install -y python3-pip python-dev build-essential | ||
RUN pip3 install --upgrade pip | ||
RUN echo Copying the Mythical Mysfits Flask service into a service directory. | ||
COPY ./service /MythicalMysfitsService | ||
WORKDIR /MythicalMysfitsService | ||
RUN echo Installing Python packages listed in requirements.txt | ||
RUN pip install -r ./requirements.txt | ||
RUN pip3 install -r ./requirements.txt | ||
RUN echo Starting python and starting the Flask service... | ||
ENTRYPOINT ["python"] | ||
ENTRYPOINT ["python3"] | ||
CMD ["mythicalMysfitsService.py"] |