🐳 fix: Update .devcontainer Files (#1712)

* fix: modify the base docker image for devcontainer

* fix: restore package-lock.json from main
This commit is contained in:
Ryohei Kamiya 2024-02-04 22:39:19 +09:00 committed by GitHub
parent 335980ac98
commit d25ff7632a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 4 deletions

5
.devcontainer/Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM node:18-bullseye
RUN useradd -m -s /bin/bash vscode
RUN mkdir -p /workspaces && chown -R vscode:vscode /workspaces
WORKDIR /workspaces

View file

@ -13,5 +13,6 @@
}
},
"postCreateCommand": "",
"features": { "ghcr.io/devcontainers/features/git:1": {} }
"features": { "ghcr.io/devcontainers/features/git:1": {} },
"remoteUser": "vscode"
}

View file

@ -2,7 +2,9 @@ version: "3.8"
services:
app:
image: node:19-bullseye
build:
context: ..
dockerfile: .devcontainer/Dockerfile
# restart: always
links:
- mongodb
@ -30,8 +32,8 @@ services:
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
# Uncomment the next line to use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
# user: vscode
# Use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
user: vscode
# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"