aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2022-02-22 01:02:17 +0100
committergabrielgio <gabriel.giovanini@pm.me>2022-02-22 01:02:17 +0100
commit4bf7a7eea37ce39abd304f35f02a4ea39f81a8f2 (patch)
treea9499c0f778e516cbb61f40293fe5f11403e9288 /Dockerfile
parentb8d69f9bf5a03fd6d8b6a477f3b7ca8f10c27bda (diff)
downloadreddit-nextcloud-importer-4bf7a7eea37ce39abd304f35f02a4ea39f81a8f2.tar.gz
reddit-nextcloud-importer-4bf7a7eea37ce39abd304f35f02a4ea39f81a8f2.tar.bz2
reddit-nextcloud-importer-4bf7a7eea37ce39abd304f35f02a4ea39f81a8f2.zip
feat: Migrate to poetry
Migrates from virtual env to poetry. Also update python packages.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 9 insertions, 1 deletions
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