initial working
This commit is contained in:
25
vm2/Dockerfile
Normal file
25
vm2/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Installa uv
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copia pyproject.toml, codice sorgente e file di configurazione
|
||||
COPY pyproject.toml ./
|
||||
COPY src/ ./src/
|
||||
COPY env/ ./env/
|
||||
COPY certs/ ./certs/
|
||||
COPY matlab_func/ ./matlab_func/
|
||||
|
||||
# Installa le dipendenze
|
||||
RUN uv pip install --system -e .
|
||||
|
||||
# Crea directory per i log, FTP e MATLAB
|
||||
RUN mkdir -p /app/logs /app/aseftp/csvfs /app/certs /app/matlab_runtime /app/matlab_func
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PYTHONPATH=/app
|
||||
|
||||
# Il comando verrà specificato nel docker-compose.yml per ogni servizio
|
||||
CMD ["python", "-m", "src.elab_orchestrator"]
|
||||
Reference in New Issue
Block a user