Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix git-permissions & update img to python 3.10 #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM python:3.8.16-slim as base
FROM python:3.11-slim as base

ENV PIPENV_PIPFILE=/app/Pipfile
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/app

RUN apt update
RUN apt install -y git vim
RUN apt update && \
apt install -y git vim && \
rm -rf /var/lib/apt/lists/* && \
mkdir /app

RUN mkdir /app
COPY ./*.py ./LICENSE ./Pip* ./README.md /app/
RUN cd /app

RUN pip install pipenv
RUN pipenv install --system
RUN cd /app && \
pip install pipenv && \
pipenv install --system && \
git config --global --add safe.directory /repo

WORKDIR /repo

Expand Down