Files
shell_gpt/Dockerfile
T
Éric e985358499 Docker OPENAI_API_KEY env variable
* feat: use new OPENAI_API_KEY variable in the docker part
2023-03-14 01:47:17 +01:00

21 lines
389 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"]