Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ARG PYTHON_VERSION=3.8
FROM python:${PYTHON_VERSION} AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python manage.py migrate

FROM python:3.8-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY --from=builder /app .
EXPOSE 8080
CMD ["python", "manage.py", "runserver", "0.0.0.0:8080"]

12 changes: 12 additions & 0 deletions INSTRUCTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task explicitly requires the Dockerfile to have both a build stage and a run stage (multi-stage build), but this file only defines a single stage; consider adding a separate FROM for a final runtime stage and using this one as the builder (checklist item #2).

# ToDo App Docker Image
## Docker Hub
https://hub.docker.com/repository/docker/margarita8454/todoapp/general
## Запуск
Comment on lines +3 to +6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instructions mention that INSTRUCTION.md should include build and run steps and describe how to access the app in a browser; this section only covers pull/run commands and omits build steps and a note like open http://localhost:8080 (checklist items #13 and #14).


docker pull margarita8454/todoapp:1.0.0
docker run -d -p 8080:8080 margarita8454/todoapp:1.0.0
docker build -t todoapp:1.0.0 .
Comment on lines +8 to +10

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instructions list the correct docker pull, docker run, and docker build commands, but they are not wrapped in a Markdown code block. The previous review requested properly closed ``` sections; consider enclosing these commands between opening and closing triple backticks to improve readability and avoid rendering issues.


## How to access the app in the browser => http://localhost:8080/
Loading