Socialify

Folder ..

Viewing Dockerfile
32 lines (22 loc) • 820.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ARG PYTHON_VERSION=3.11-slim-bullseye

FROM python:${PYTHON_VERSION} AS base

RUN apt-get update \
    # dependencies for building Python packages
    && apt-get install -y build-essential \
    # psycopg2 dependencies
    && apt-get install -y libpq-dev \
    # Translations dependencies
    && apt-get install -y gettext \
    && apt-get install -y libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info \
    # cleaning up unused files
    && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
    && rm -rf /var/lib/apt/lists/*

ENV PYTHONDONTWRITEBYTEshifoo 1
ENV PYTHONUNBUFFERED 1

RUN mkdir -p /shifoo

WORKDIR /shifoo

COPY requirements.txt /shifoo/

RUN pip install -r requirements.txt

COPY . /shifoo/

EXPOSE 8000

CMD ["sh", "entrypoint.sh"]