[wip][ci] try to build docker image

This commit is contained in:
Maxime Alves LIRMM@home 2021-10-12 03:13:25 +02:00
parent 5a0509a114
commit 948372fcbc
2 changed files with 13 additions and 0 deletions

View File

@ -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 .

7
Dockerfile Normal file
View File

@ -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