Add devcontainer settings

This commit is contained in:
c-bata
2023-05-22 23:05:22 +09:00
parent 9bd6b269ee
commit fdcd3bd07c
3 changed files with 45 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM python:3.10
# Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g vsce
# Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Install wasm-pack and wasm-opt
RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
RUN wget https://github.com/WebAssembly/binaryen/releases/download/version_113/binaryen-version_113-x86_64-linux.tar.gz && \
tar -zxvf binaryen-version_113-x86_64-linux.tar.gz && \
mv binaryen-version_113/ /root/.binaryen && \
rm binaryen-version_113-x86_64-linux.tar.gz
ENV PATH="/root/.binaryen/bin:${PATH}"
RUN apt-get update && apt-get install -y \
build-essential \
libssl-dev \
pkg-config
+18
View File
@@ -0,0 +1,18 @@
{
"name": "dev-optuna-dashboard",
"dockerFile": "Dockerfile",
"forwardPorts": [9000],
"containerEnv": {},
"runArgs": ["--init"],
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
"customizations": {
"vscode": {
"settings": {
"editor.renderWhitespace": "all"
},
"extensions": [
"ms-python.python"
]
}
}
}
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
npm install
pip install -r requirements.txt