-
Notifications
You must be signed in to change notification settings - Fork 303
The solution #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
The solution #290
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| ARG PYTHON_VERSION=3.9-slim | ||
| FROM python:${PYTHON_VERSION} AS builder | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Malformed URL - missing |
||
|
|
||
|
|
||
| ENV PYTHONDONTWRITEBYTECODE=1 | ||
| ENV PYTHONUNBUFFERED=1 | ||
|
|
||
| WORKDIR /app | ||
|
|
||
|
Comment on lines
+1
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing requirement: The INSTRUCTION.md file does not contain instructions on accessing the application via a browser, which is required by the task description (requirement #13). Add instructions like: |
||
| COPY requirements.txt . | ||
| RUN pip install --no-cache-dir --prefix=/install -r requirements.txt | ||
|
|
||
| FROM python:${PYTHON_VERSION} | ||
|
|
||
| ENV PYTHONUNBUFFERED=1 | ||
|
|
||
| COPY --from=builder /install /usr/local | ||
| COPY . . | ||
|
|
||
| RUN python manage.py migrate | ||
|
|
||
| EXPOSE 8080 | ||
| CMD ["python", "manage.py", "runserver", "0.0.0.0:8080"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # ToDo App Docker Instructions | ||
| "Open http//:localhost:8080 in your browser" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The URL is malformed. Change |
||
| ## Docker Hub | ||
| Link to image: https://hub.docker.com/repository/docker/dianahorban/todoapp/general | ||
| ## Build and Run | ||
| ```bash | ||
| # Build image | ||
| docker build -t todoapp . | ||
| # Run container | ||
| docker run -d -p 8080:8080 todoapp | ||
|
Comment on lines
+1
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The browser access URL is malformed - missing
//afterhttp:. Should behttp://localhost:8080instead ofhttp:localhost:8080. This breaks the link and fails requirement #13 which requires working browser access instructions.