mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-20 11:48:16 +00:00
24 lines
513 B
Docker
24 lines
513 B
Docker
FROM ghcr.io/sartography/python:3.9
|
|
|
|
RUN pip install pipenv
|
|
RUN useradd _gunicorn --no-create-home --user-group
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y -q \
|
|
gcc libssl-dev \
|
|
curl postgresql-client git-core \
|
|
gunicorn3 postgresql-client
|
|
|
|
WORKDIR /app
|
|
COPY Pipfile Pipfile.lock /app/
|
|
RUN pipenv install
|
|
|
|
RUN set -xe \
|
|
&& apt-get remove -y gcc python3-dev libssl-dev \
|
|
&& apt-get autoremove -y \
|
|
&& apt-get clean -y \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . /app/
|
|
WORKDIR /app
|