Skip to content

Commit

Permalink
devcontainer辞めれなかった… (#46)
Browse files Browse the repository at this point in the history
変わりに早くなった

Co-authored-by: ToYama <toyamasoujinn@gamil.com>
  • Loading branch information
ToYama170402 and ToYama authored Dec 8, 2024
1 parent 35214de commit f880360
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
16 changes: 4 additions & 12 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
{
"name": "rishu-app",
"dockerComposeFile": ["../docker-compose.dev.yml", "docker-compose.yml"],
"dockerComposeFile": [
"../docker-compose.dev.yml",
"docker-compose.yml"
],
"service": "backend",
"workspaceFolder": "/workspace",
// コンテナに追加する機能
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"upgradePackages": false,
"username": "node"
}
},
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"customizations": {
"vscode": {
"settings": {
Expand Down
3 changes: 2 additions & 1 deletion frontend/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ WORKDIR /workspace
COPY --chown=user:node package.json yarn.lock* ./

RUN mkdir -p /workspace/node_modules && chown -R node:node /workspace
RUN npm install -g pnpm

USER node
RUN yarn install
RUN pnpm install

# Next.jsによってテレメトリデータを収集するのを無効にする
ARG NEXT_TELEMETRY_DISABLED=1
Expand Down

0 comments on commit f880360

Please sign in to comment.