pkgs
This commit is contained in:
@@ -5,9 +5,9 @@ ARG VARIANT="3.10-bullseye"
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
|
||||
|
||||
# CA Certificate using a script that read the files from the ./certs directory
|
||||
COPY certs/. /usr/local/share/ca-certificates/
|
||||
ENV NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/my_company.pem
|
||||
RUN sudo update-ca-certificates
|
||||
#COPY certs/. /usr/local/share/ca-certificates/
|
||||
#ENV NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/my_company.pem
|
||||
#RUN sudo update-ca-certificates
|
||||
|
||||
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
|
||||
ARG NODE_VERSION="none"
|
||||
@@ -53,3 +53,7 @@ RUN rm -rf /tmp/pip-tmp
|
||||
|
||||
# [Optional] Uncomment this line to install global node packages.
|
||||
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
|
||||
|
||||
# [Optional] Uncomment this line to install sqlite.
|
||||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get -y install --no-install-recommends sqlite3
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
"context": "..",
|
||||
"args": {
|
||||
"args": {
|
||||
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
|
||||
// Append -bullseye or -buster to pin to an OS version.
|
||||
// Use -bullseye variants on local on arm64/Apple Silicon.
|
||||
@@ -16,7 +16,7 @@
|
||||
},
|
||||
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {
|
||||
"settings": {
|
||||
"python.defaultInterpreterPath": "/usr/local/bin/python",
|
||||
"python.linting.enabled": true,
|
||||
"python.linting.pylintEnabled": true,
|
||||
@@ -47,8 +47,7 @@
|
||||
// dev project package installation as `develop` (i.e., instant availability of changes)
|
||||
//"postCreateCommand": "python setup.py develop", # FAILS unable to write, raise to sudo
|
||||
//"postCreateCommand": "sudo python setup.py develop",
|
||||
//"postCreateCommand": "sudo pip3 --trusted-host pypi.org --trusted-host files.pythonhosted.org --disable-pip-version-check --no-cache-dir install -e .",
|
||||
"postCreateCommand": "sudo python setup.py develop",
|
||||
"postCreateCommand": "sudo pip3 --trusted-host pypi.org --trusted-host files.pythonhosted.org --disable-pip-version-check --no-cache-dir install -e .",
|
||||
|
||||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||
"remoteUser": "vscode",
|
||||
|
||||
Reference in New Issue
Block a user