Skip to content

Commit 412e469

Browse files
feat: Add Dockerfile.python
1 parent edf679c commit 412e469

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.devcontainer/Dockerfile.python

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ARG VARIANT=latest
2+
FROM docker.io/library/python:$VARIANT
3+
4+
ARG USERNAME=codespace
5+
ARG USER_UID=1000
6+
ARG USER_GID=$USER_UID
7+
8+
ENV \
9+
DEBIAN_FRONTEND=noninteractive \
10+
DOCKER_BUILDKIT=1 \
11+
SHELL=/bin/bash
12+
13+
COPY library-scripts/* /tmp/scripts/
14+
15+
RUN \
16+
bash /tmp/scripts/common-debian.sh "true"; \
17+
bash /tmp/scripts/setup-user-debian.sh "${USERNAME}" "${USER_UID}" "${USER_GID}"; \
18+
bash /tmp/scripts/hadolint-debian.sh "2.10.0"; \
19+
bash /tmp/scripts/shfmt-debian.sh "3.5.1"; \
20+
bash /tmp/scripts/shellcheck-debian.sh "0.8.0"; \
21+
bash /tmp/scripts/editorconfig-debian.sh "2.5.0"; \
22+
bash /tmp/scripts/trivy-debian.sh; \
23+
bash /tmp/scripts/setup-python-tools.sh "/usr/local/bin/python" "/usr/local/"; \
24+
apt-get autoremove; \
25+
apt-get clean; \
26+
rm -rf /var/lib/apt/lists/* /tmp/scripts

0 commit comments

Comments
 (0)