This commit is contained in:
parent
83596ea7bb
commit
3fbd1a36db
14
Dockerfile
14
Dockerfile
@ -1,16 +1,12 @@
|
||||
FROM python:3.8-alpine as build
|
||||
RUN apk add --no-cache \
|
||||
build-base \
|
||||
FROM python:3.8-slim as build
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||
gcc \
|
||||
gettext \
|
||||
git \
|
||||
jpeg-dev \
|
||||
libffi-dev \
|
||||
libjpeg \
|
||||
musl-dev \
|
||||
postgresql-dev \
|
||||
# postgresql \
|
||||
python3-dev \
|
||||
zlib-dev
|
||||
libpq-dev
|
||||
RUN mkdir -p /app/{code,venv}
|
||||
WORKDIR /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
|
||||
# Install dependencies into the virtual environment with Pipenv
|
||||
RUN pipenv install --deploy --verbose
|
||||
FROM python:3.8-alpine
|
||||
FROM python:3.8-slim
|
||||
RUN apk add --no-cache \
|
||||
cloud-utils \
|
||||
libjpeg \
|
||||
|
3
Pipfile
3
Pipfile
@ -4,8 +4,8 @@ verify_ssl = true
|
||||
name = "pypi"
|
||||
|
||||
[packages]
|
||||
psycopg2 = "==2.8.5"
|
||||
astroid = "==2.4.1"
|
||||
numpy = "==1.22.3"
|
||||
blinker = "==1.4"
|
||||
click = "==7.1.2"
|
||||
Flask = "==1.1.2"
|
||||
@ -18,7 +18,6 @@ lazy-object-proxy = "==1.4.3"
|
||||
MarkupSafe = "==1.1.1"
|
||||
mccabe = "==0.6.1"
|
||||
nanoid = "==2.0.0"
|
||||
psycopg2 = "==2.8.5"
|
||||
pylint = "==2.5.2"
|
||||
six = "==1.14.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