From 9ea12a7f0e2007267ad54d33bff801e218c52b45 Mon Sep 17 00:00:00 2001 From: dav nguyxn Date: Sat, 25 Oct 2025 22:55:38 -0400 Subject: [PATCH] Add Dockerfile for Node.js environment setup Signed-off-by: dav nguyxn --- .github/Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/Dockerfile diff --git a/.github/Dockerfile b/.github/Dockerfile new file mode 100644 index 0000000..07eeeb2 --- /dev/null +++ b/.github/Dockerfile @@ -0,0 +1,41 @@ +# Use the latest official Node.js image +FROM node:latest + +# Install useful system utilities +ENV TZ=America/New_York +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get install --yes \ + apt-transport-https \ + build-essential \ + ca-certificates \ + curl \ + debian-keyring \ + debian-archive-keyring \ + git \ + gnupg \ + locales \ + postgresql-client \ + software-properties-common \ + sudo \ + tzdata \ + wget \ + zsh \ + && rm -rf /var/lib/apt/lists/* + +# Create and set the working directory +RUN mkdir /workspace +WORKDIR /workspace + +# Copy the entire project into the environment +COPY . . + +# Expose ports +EXPOSE 3000 + +# Configure zsh shell and theme +USER $USERNAME +ENV HOME /home/$USERNAME +RUN curl https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash - \ + && sed -i 's/robbyrussell/kennethreitz/g' ~/.zshrc \ + && echo 'export PATH=$PATH:$HOME/.local/bin' >>~/.zshrc