This commit is contained in:
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 \
|
||||
|
Reference in New Issue
Block a user