This commit is contained in:
parent
83596ea7bb
commit
3fbd1a36db
14
Dockerfile
14
Dockerfile
@ -1,16 +1,12 @@
|
|||||||
FROM python:3.8-alpine as build
|
FROM python:3.8-slim as build
|
||||||
RUN apk add --no-cache \
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
build-base \
|
|
||||||
gcc \
|
gcc \
|
||||||
gettext \
|
gettext \
|
||||||
git \
|
git \
|
||||||
jpeg-dev \
|
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libjpeg \
|
# postgresql \
|
||||||
musl-dev \
|
|
||||||
postgresql-dev \
|
|
||||||
python3-dev \
|
python3-dev \
|
||||||
zlib-dev
|
libpq-dev
|
||||||
RUN mkdir -p /app/{code,venv}
|
RUN mkdir -p /app/{code,venv}
|
||||||
WORKDIR /app/code
|
WORKDIR /app/code
|
||||||
COPY Pipfile Pipfile.lock /app/code/
|
COPY Pipfile Pipfile.lock /app/code/
|
||||||
@ -20,7 +16,7 @@ ENV PATH="/app/venv/bin:$PATH" VIRTUAL_ENV="/app/venv"
|
|||||||
RUN pip install wheel cppy
|
RUN pip install wheel cppy
|
||||||
# Install dependencies into the virtual environment with Pipenv
|
# Install dependencies into the virtual environment with Pipenv
|
||||||
RUN pipenv install --deploy --verbose
|
RUN pipenv install --deploy --verbose
|
||||||
FROM python:3.8-alpine
|
FROM python:3.8-slim
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
cloud-utils \
|
cloud-utils \
|
||||||
libjpeg \
|
libjpeg \
|
||||||
|
3
Pipfile
3
Pipfile
@ -4,8 +4,8 @@ verify_ssl = true
|
|||||||
name = "pypi"
|
name = "pypi"
|
||||||
|
|
||||||
[packages]
|
[packages]
|
||||||
|
psycopg2 = "==2.8.5"
|
||||||
astroid = "==2.4.1"
|
astroid = "==2.4.1"
|
||||||
numpy = "==1.22.3"
|
|
||||||
blinker = "==1.4"
|
blinker = "==1.4"
|
||||||
click = "==7.1.2"
|
click = "==7.1.2"
|
||||||
Flask = "==1.1.2"
|
Flask = "==1.1.2"
|
||||||
@ -18,7 +18,6 @@ lazy-object-proxy = "==1.4.3"
|
|||||||
MarkupSafe = "==1.1.1"
|
MarkupSafe = "==1.1.1"
|
||||||
mccabe = "==0.6.1"
|
mccabe = "==0.6.1"
|
||||||
nanoid = "==2.0.0"
|
nanoid = "==2.0.0"
|
||||||
psycopg2 = "==2.8.5"
|
|
||||||
pylint = "==2.5.2"
|
pylint = "==2.5.2"
|
||||||
six = "==1.14.0"
|
six = "==1.14.0"
|
||||||
toml = "==0.10.0"
|
toml = "==0.10.0"
|
||||||
|
1050
Pipfile.lock
generated
1050
Pipfile.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user