From eca1a129227ecf945c4e3aba1b288d634138cf1a Mon Sep 17 00:00:00 2001 From: boke0 Date: Tue, 9 Mar 2021 01:53:57 +0900 Subject: [PATCH] [update] --- Dockerfile | 5 +++-- Dockerfile.mysql | 3 ++- Dockerfile.postgresql | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7d6b1e5..73ec21f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,11 @@ FROM alpine:3.13 RUN mkdir /code ADD ./mitama /code/mitama ADD ./pyproject.toml /code/pyproject.toml +ADD ./.git /code/.git WORKDIR /code -RUN apk add --no-cache python3 python3-dev py3-pip libmagic nginx build-base gcc libffi-dev openssl-dev rust cargo zlib-dev jpeg-dev nginx postfix\ +RUN apk add --no-cache python3 python3-dev py3-pip libmagic nginx build-base gcc libffi-dev openssl-dev rust cargo zlib-dev jpeg-dev nginx postfix git \ && pip3 install --upgrade pip \ - && pip3 install uwsgi poetry poetry-dynamic-versioning \ + && pip3 install uwsgi poetry wheel poetry-dynamic-versioning \ && poetry config virtualenvs.create false \ && poetry install --no-dev \ && apk del --purge zlib-dev gcc openssl-dev rust cargo python3-dev build-base libffi-dev diff --git a/Dockerfile.mysql b/Dockerfile.mysql index 82df032..4e19488 100644 --- a/Dockerfile.mysql +++ b/Dockerfile.mysql @@ -2,10 +2,11 @@ FROM alpine:3.13 RUN mkdir /code ADD ./mitama /code/mitama ADD ./pyproject.toml /code/pyproject.toml +ADD ./.git /code/.git WORKDIR /code RUN apk add --no-cache python3 python3-dev py3-pip libmagic nginx build-base gcc libffi-dev openssl-dev rust cargo zlib-dev jpeg-dev nginx postfix mariadb-dev mariadb-connector-c-dev\ && pip3 install --upgrade pip \ - && pip3 install uwsgi poetry mysqlclient poetry-dynamic-versioning \ + && pip3 install uwsgi poetry mysqlclient wheel poetry-dynamic-versioning git \ && poetry config virtualenvs.create false \ && poetry install --no-dev \ && apk del --purge zlib-dev gcc openssl-dev rust cargo python3-dev build-base libffi-dev mariadb-dev diff --git a/Dockerfile.postgresql b/Dockerfile.postgresql index f979b50..b05af2d 100644 --- a/Dockerfile.postgresql +++ b/Dockerfile.postgresql @@ -2,10 +2,11 @@ FROM alpine:3.13 RUN mkdir /code ADD ./mitama /code/mitama ADD ./pyproject.toml /code/pyproject.toml +ADD ./.git /code/.git WORKDIR /code -RUN apk add --no-cache python3 python3-dev py3-pip libmagic nginx build-base gcc libffi-dev openssl-dev rust cargo zlib-dev jpeg-dev nginx postfix postgresql-dev postgresql-libs \ +RUN apk add --no-cache python3 python3-dev py3-pip libmagic nginx build-base gcc libffi-dev openssl-dev rust cargo zlib-dev jpeg-dev nginx postfix postgresql-dev postgresql-libs git \ && pip3 install --upgrade pip \ - && pip3 install uwsgi poetry psycopg2 poetry-dynamic-versioning \ + && pip3 install uwsgi poetry psycopg2 wheel poetry-dynamic-versioning \ && poetry config virtualenvs.create false \ && poetry install --no-dev \ && apk del --purge zlib-dev gcc openssl-dev rust cargo python3-dev build-base libffi-dev postgresql-dev