From 4bf7a7eea37ce39abd304f35f02a4ea39f81a8f2 Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Tue, 22 Feb 2022 01:02:17 +0100 Subject: feat: Migrate to poetry Migrates from virtual env to poetry. Also update python packages. --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 22e32bc..f5dd9e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,18 @@ +FROM registry.gitlab.com/gabrielgio/alpine-poetry:latest as poetry + +COPY poetry.lock . +COPY pyproject.toml . +RUN poetry export -f requirements.txt --output requirements.txt + + + FROM python:3-alpine RUN apk add --no-cache ffmpeg WORKDIR /opt -COPY requirements.txt . +COPY --from=poetry requirements.txt . RUN pip install -r requirements.txt ADD importer importer -- cgit v1.2.3