From 948372fcbc5ca888b5f2d42155ecb76fa27c0393 Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Tue, 12 Oct 2021 03:13:25 +0200 Subject: [PATCH] [wip][ci] try to build docker image --- .gitlab-ci.yml | 6 ++++++ Dockerfile | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d2ef6b6..76f5e7b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,3 +40,9 @@ run: artifacts: paths: - dist/*.whl + +build: + image: docker:19.03.12-dind + script: + - apt-get install python3 + - docker build -t halfapi . diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..600cc71 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +# syntax=docker/dockerfile:1 +FROM docker.io/python:3.8.12-slim-bullseye +COPY . /halfapi +WORKDIR /halfapi +RUN pip install . +CMD gunicorn halfapi.app +