14 lines
330 B
Docker
14 lines
330 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && apt-get install -y build-essential
|
|
|
|
ARG USERNAME=vscode
|
|
ARG USER_UID=1000
|
|
ARG USER_GID=$USER_UID
|
|
|
|
RUN pip install --no-cache-dir pytest black
|
|
|
|
RUN groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
|
|
USER $USERNAME
|
|
WORKDIR /workspace
|