castad-pre-v0.3/Dockerfile

31 lines
609 B
Docker

FROM ubuntu:24.04
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
ENV NODE_ENV=production
# 시스템 패키지 설치
RUN apt-get update && apt-get install -y \
curl \
wget \
gnupg \
lsb-release \
apt-transport-https \
ca-certificates \
git \
build-essential \
python3 \
&& rm -rf /var/lib/apt/lists/*
# Node.js 및 npm 설치
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
# 포트 개방
EXPOSE 3000 3001
# 컨테이너 실행 상태 유지
CMD ["tail", "-f", "/dev/null"]