Changed python

This commit is contained in:
Brage 2024-01-14 19:21:16 +01:00
parent af5e1613be
commit 9365e19237
2 changed files with 4 additions and 2 deletions

View File

@ -252,6 +252,8 @@ jobs:
with: with:
context: . context: .
file: ./dockerfiles/Python file: ./dockerfiles/Python
build-args:
MODULE_NAME=pyMetadata
push: true push: true
tags: | tags: |
bskjon/mediaprocessing-pymetadata:v2 bskjon/mediaprocessing-pymetadata:v2

View File

@ -6,11 +6,11 @@ FROM python:3.11
WORKDIR /app WORKDIR /app
# Kopier requirements.txt-filen og installer avhengigheter # Kopier requirements.txt-filen og installer avhengigheter
COPY requirements.txt requirements.txt COPY ./apps/${MODULE_NAME}/requirements.txt requirements.txt
RUN pip3 install -r ./requirements.txt RUN pip3 install -r ./requirements.txt
# Kopier resten av prosjektfilene # Kopier resten av prosjektfilene
COPY . . COPY ./apps/${MODULE_NAME}/ .
# Start applikasjonen # Start applikasjonen
CMD ["python3", "-u", "app.py"] CMD ["python3", "-u", "app.py"]