feat: dev container use node-alpine image

This commit is contained in:
老周部落 2024-03-08 22:30:24 +08:00
parent e683866054
commit 851b3fba1d
No known key found for this signature in database
GPG key ID: C72181CD85C6B738
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ version: "3"
services:
web:
image: docker.io/node:21-slim
image: docker.io/node:21-alpine
container_name: firefish_web
restart: unless-stopped
depends_on:
@ -35,7 +35,7 @@ services:
db:
restart: unless-stopped
image: docker.io/groonga/pgroonga:latest-alpine-15-slim
image: docker.io/groonga/pgroonga:latest-alpine-16-slim
container_name: firefish_db
networks:
- firefishnet

View file

@ -7,8 +7,8 @@ node --version
if [ ! -f '/.firefish_env_initialized' ]; then
# Install compilation dependencies
apt-get update
DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends curl build-essential ca-certificates python3 postgresql-client-15 git
apk update
apk add --no-cache build-base linux-headers curl ca-certificates python3 git postgresql16-client zip unzip ffmpeg
curl -vvv --proto '=https' --tlsv1.2 --show-error --fail https://sh.rustup.rs | sh -s -- -y
# Add Cargo PATH