spiff-arena/Dockerfile
burnettk 5fb4f7ee74 Squashed 'connector-proxy-demo/' changes from fb5c24eaf..7264d61b2
7264d61b2 Fixes based off KB's super kind review. ------- * Remove unnecessary packages from dockerfile for the demo-connect proxy. * Rename an environment variable that mentioned Status.im in what is now a generic connector. * Fixed a spelling mistake.
990cecaa1 fixing a few borked up things about the connector-proxy-demo's docker contaier.
2bcac532e Don't look for sources where there aren't any
bb2efaf51 more tweaking

git-subtree-dir: connector-proxy-demo
git-subtree-split: 7264d61b2f65989d40d0bc1fb5cea9585b88771a
2022-12-10 23:40:39 -05:00

28 lines
654 B
Docker

FROM ghcr.io/sartography/python:3.11
RUN pip install poetry
RUN useradd _gunicorn --no-create-home --user-group
RUN apt-get update && \
apt-get install -y -q \
gcc libssl-dev \
curl gunicorn3
WORKDIR /app
COPY pyproject.toml poetry.lock /app/
RUN poetry install --without dev
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/
# run poetry install again AFTER copying the app into the image
# otherwise it does not know what the main app module is
RUN poetry install --without dev
CMD ./bin/boot_server_in_docker