generated from nyu-software-engineering/containerized-app-exercise
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from software-students-fall2023/rqF
setup webapp dockerfile
- Loading branch information
Showing
3 changed files
with
24 additions
and
8 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
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 |
---|---|---|
|
@@ -18,4 +18,4 @@ COPY . . | |
|
||
RUN pip install -r requirements.txt | ||
|
||
CMD ["python"] | ||
CMD ["python", "machine_learning_client.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM python:3.11 | ||
WORKDIR /app | ||
ADD . /app | ||
|
||
RUN pip install --trusted-host pypi.python.org -r requirements.txt | ||
|
||
EXPOSE 80 | ||
|
||
# Define an environment variable... this will be available to programs running inside the container | ||
ENV NAME World | ||
# Run app.py when the container launches | ||
CMD ["python", "app.py"] |