Téléverser les fichiers vers "/"

This commit is contained in:
Johanne TROTIN 2025-03-06 10:35:42 +01:00
parent 31301f948c
commit 8dcf94a610
2 changed files with 28 additions and 0 deletions

20
.drone.yaml Normal file
View File

@ -0,0 +1,20 @@
kind: pipeline
type: docker
name: Build & publish docker image
steps:
- name: publish-image
pull: always
image: plugins/kaniko:1.7.1-kaniko1.9.1
settings:
tags: ${DRONE_TAG##v}
registry: code.groupe-genes.fr
repo: code.groupe-genes.fr/labeds/cours_nunez
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- tag

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM ubuntu:22.04
RUN apt-get update && apt-get -y install python3-pip git libpq-dev
ADD . /opt/otree
WORKDIR /opt/otree
RUN pip3 install -r requirements.txt
CMD ["otree", "prodserver", "8000"]