Skip to content

Commit

Permalink
Update Dev Container
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowRZ committed May 20, 2024
1 parent 75ef7f9 commit 2520305
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM mcr.microsoft.com/devcontainers/rust:1-1-bullseye
RUN sed -i 's|deb.debian.org|mirrors.bfsu.edu.cn|g' /etc/apt/sources.list
# Add OpenSSL / SQLite development packages
RUN apt-get update && apt-get install -y pkg-config libssl-dev libsqlite3-dev
9 changes: 8 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/rust

// WARN: Some configs might not be tailored to a generic environment.
{
"name": "Fuuka Bot",
"build": {
Expand All @@ -14,7 +16,12 @@
"tamasfe.even-better-toml"
]
}
}
},
"runArgs": [
"--userns=keep-id:uid=1000,gid=100"
],
"containerUser": "vscode",
"updateRemoteUserUID": true
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
// "mounts": [
// {
Expand Down

0 comments on commit 2520305

Please sign in to comment.