Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6e003035 authored by MOLLI Martin's avatar MOLLI Martin
Browse files

Update ci

parent a9772f47
No related branches found
No related tags found
No related merge requests found
Pipeline #1139142 failed
...@@ -19,6 +19,6 @@ build-job: # This job runs in the build stage, which runs first. ...@@ -19,6 +19,6 @@ build-job: # This job runs in the build stage, which runs first.
- docker build -t motion_detector:latest ./services/motion_detector - docker build -t motion_detector:latest ./services/motion_detector
- docker build -t object_recognizer:latest ./services/object_recognizer - docker build -t object_recognizer:latest ./services/object_recognizer
- docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing camera:latest - docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing/camera:latest
- docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing motion_detector:latest - docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing/motion_detector:latest
- docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing object_recognizer:latest - docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing/object_recognizer:latest
# Use the official Python image as base # Use the official Python image as base
FROM python:3.8-slim as build FROM python:3.12-slim as build
# Set the working directory inside the container # Set the working directory inside the container
WORKDIR /app WORKDIR /app
...@@ -12,7 +12,8 @@ WORKDIR /app ...@@ -12,7 +12,8 @@ WORKDIR /app
COPY . . COPY . .
# Install required Python packages # Install required Python packages
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir --upgrade pip \
pip install --no-cache-dir -r requirements.txt
# Set environment variables with default values # Set environment variables with default values
ENV CAMERA="false" \ ENV CAMERA="false" \
......
# Use the official Python image as base # Use the official Python image as base
FROM python:3.8-slim as build FROM python:3.12-slim as build
# Set the working directory inside the container # Set the working directory inside the container
WORKDIR /app WORKDIR /app
......
# Use the official Python image as base # Use the official Python image as base
FROM python:3.8-slim as build FROM python:3.12-slim as build
# Set the working directory inside the container # Set the working directory inside the container
WORKDIR /app WORKDIR /app
...@@ -12,7 +12,8 @@ WORKDIR /app ...@@ -12,7 +12,8 @@ WORKDIR /app
COPY . . COPY . .
# Install required Python packages # Install required Python packages
RUN pip install -r requirements.txt RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Expose port 5000 # Expose port 5000
EXPOSE 5000 EXPOSE 5000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment