Skip to content

Commit

Permalink
update production dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marihachi committed Jun 25, 2024
1 parent 94cd1fb commit c2ede36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 2 additions & 7 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@

FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 AS backend

# ホスト側のファイル所有者とのUID衝突を避けるためユーザーを削除
RUN deluser ubuntu

# Install Node.js
RUN \
# 動かないのでひとまず無効化。動く方法が分かったら使いたい
# --mount=type=cache,target=/var/lib/apt/lists \
# --mount=type=cache,target=/var/cache/apt/archives \
--mount=type=cache,target=/var/lib/apt/lists \
--mount=type=cache,target=/var/cache/apt/archives \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs

Expand Down
9 changes: 2 additions & 7 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@

FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 AS frontend

# ホスト側のファイル所有者とのUID衝突を避けるためユーザーを削除
RUN deluser ubuntu

# Install Node.js
RUN \
# 動かないのでひとまず無効化。動く方法が分かったら使いたい
# --mount=type=cache,target=/var/lib/apt/lists \
# --mount=type=cache,target=/var/cache/apt/archives \
--mount=type=cache,target=/var/lib/apt/lists \
--mount=type=cache,target=/var/cache/apt/archives \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs

Expand Down

0 comments on commit c2ede36

Please sign in to comment.