Skip to content

Commit 0b78fee

Browse files
authored
Merge pull request #107982 from msangapu-msft/patch-9
Update tutorial-custom-docker-image.md
2 parents 467720c + 43a45d9 commit 0b78fee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/app-service/containers/tutorial-custom-docker-image.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cd docker-django-webapp-linux
4545

4646
## Build the image from the Docker file
4747

48-
In the Git repository, take a look at _Dockerfile_. This file describes the Python environment that is required to run your application. Additionally, the image sets up an [SSH](https://www.ssh.com/ssh/protocol/) server for secure communication between the container and the host.
48+
In the Git repository, take a look at _Dockerfile_. This file describes the Python environment that is required to run your application. Additionally, the image sets up an [SSH](https://www.ssh.com/ssh/protocol/) server for secure communication between the container and the host. The last line in the _Dockerfile_, `ENTRYPOINT ["init.sh"]`, invokes `init.sh` to start the SSH service and Python server.
4949

5050
```Dockerfile
5151
FROM python:3.4
@@ -69,6 +69,8 @@ COPY init.sh /usr/local/bin/
6969

7070
RUN chmod u+x /usr/local/bin/init.sh
7171
EXPOSE 8000 2222
72+
73+
#service SSH start
7274
#CMD ["python", "/code/manage.py", "runserver", "0.0.0.0:8000"]
7375
ENTRYPOINT ["init.sh"]
7476
```

0 commit comments

Comments
 (0)