Project1
This commit is contained in:
16
project1/dockerfile
Normal file
16
project1/dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# Folosesc o imagine oficiala de Python (Slim)
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Setez directorul de lucru in container
|
||||
WORKDIR /the/workdir/path
|
||||
|
||||
# Copiez fisierul de requirements in container
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copiez restul codului sursa in container
|
||||
COPY checker.py .
|
||||
|
||||
# Comanda de rulare a aplicatiei
|
||||
CMD ["python", "checker.py"]
|
||||
|
||||
Reference in New Issue
Block a user