Files
shell_gpt/Dockerfile
T
Farkhod Sadykov 12134c2c95 Migrating to TOML new linting and stricted typing (#165)
* pyproject.toml
* sdist and bdist specific files.
* CONTRIBUITNG.md.
* New linters and CI/CD.
* Mypy stricted types.
* Shell scripts to run linters and tests.
2023-04-15 01:22:23 +02:00

20 lines
388 B
Docker

FROM python:3-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV PIP_ROOT_USER_ACTION ignore
WORKDIR /app
COPY . /app
RUN pip install --no-cache --upgrade pip \
&& pip install --no-cache /app \
&& addgroup --system app && adduser --system --group app \
&& mkdir -p /tmp/shell_gpt \
&& chown -R app:app /tmp/shell_gpt
USER app
VOLUME /tmp/shell_gpt
ENTRYPOINT ["sgpt"]