File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
docs/cloud_operations/docker Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -907,3 +907,45 @@ This note is here then to give credits to the teams that created the above resou
907907information on Docker and other things, feel free to check them out!
908908
909909:::
910+
911+ ## Example Dockerfile
912+
913+ ``` text
914+
915+ FROM python:3.13.6-alpine
916+
917+ WORKDIR /application
918+
919+ COPY server.py /application
920+
921+ COPY requirements.txt /application
922+
923+ RUN pip install -r requirements.txt
924+
925+ EXPOSE 5000
926+
927+ CMD [ "python3", "server.py"]
928+
929+ # 1. Plecam de la o imagine care are cat mai multe dependinte din ce ne trebuie noua
930+ # 2. Copiem fisierele necesare aplicatiei noastra
931+ # 3. Instalam eventuale dependinte
932+ # 4. Realizam eventuale configurari pentru a porni aplicatia
933+ # 5. Specificam comanda default care porneste aplicatie in momentul in care containerul este up and
934+ # running
935+
936+
937+ ```text
938+
939+ The hierarchy where the Dockerfile is located looks like this:
940+
941+ .
942+ ├── Dockerfile
943+ ├── requirements.txt
944+ ├── server.py
945+ └── venv (for testing purposes)
946+ ├── bin
947+ ├── include
948+ ├── lib
949+ └── pyvenv.cfg
950+
951+ ```
You can’t perform that action at this time.
0 commit comments