Docker vaja

This commit is contained in:
2025-05-08 21:26:41 +00:00
parent 391932813a
commit d0d42c5112
2 changed files with 11 additions and 3 deletions

View File

@@ -1,4 +1,10 @@
# Dockerfile za NUKS
FROM python:3.13-slim
WORKDIR /app
COPY . .
FROM alpine
CMD [ "echo", "Hello!" ]
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN . /app/venv/bin/activate && pip install --upgrade pip && pip install -r requirements.txt
EXPOSE 8000
CMD uvicorn main:app --host 0.0.0.0

View File

@@ -7,4 +7,6 @@ services:
environment:
- SIPOREX=cegli
web:
image: alpine
image: alpine
#naslednji teden openfaas