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
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG python_version=3.14
FROM python:${python_version} AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --prefix=/install -r requirements.txt

FROM python:${python_version}
WORKDIR /app
COPY --from=builder /install /usr/local
COPY . .
ENV PYTHONUNBUFFERED=1
RUN python manage.py migrate
EXPOSE 8080
Comment on lines +1 to +13
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 INSTRUCTION.md file is incomplete. It only shows the beginning of the 'git clone' instructions but doesn't include: 1) How to build the image (docker build -t todoapp .), 2) How to run the container, 3) Instructions for accessing the application via browser at http://localhost:8080 or http://0.0.0.0:8080.

CMD ["python", "manage.py", "runserver", "0.0.0.0:8080"]
32 changes: 32 additions & 0 deletions INSTRUCTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# ToDo App — Docker Instructions

## Docker Hub Repository

Image is available at: https://hub.docker.com/r/tanyasavenko/todoapp

## Building the image

1. Clone the repository:
```bash
git clone https://github.com/tanyasavenko/devops_todolist.git
cd devops_todolist
```

2. Build the Docker image:
```bash
docker build -t todoapp:1.0.0 .
```

## Running the container

```bash
docker run -p 8080:8080 todoapp:1.0.0
```

## Accessing the application

Open your browser and navigate to:

```
http://localhost:8080
```
Loading