-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve dev container with ZSH support.
- Loading branch information
1 parent
d60a633
commit ee164d2
Showing
3 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
# colors | ||
NC='\033[0m' # no color | ||
YELLOW='\033[1;33m' | ||
|
||
# echo start instructions | ||
echo -e "To start your bot-zero instance, please enter: ${YELLOW}npm run dev${NC}" | ||
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
# Start with the same base image | ||
FROM mcr.microsoft.com/devcontainers/javascript-node:0-18-bullseye | ||
FROM mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm | ||
|
||
# Upgrade NPM | ||
RUN npm install -g npm@9.6.7 | ||
RUN npm install -g npm@10.9.0 --no-audit --no-fund | ||
|
||
# Install global packages | ||
RUN npm install --no-audit --no-fund --global \ | ||
npm-check-updates | ||
|
||
COPY ./startup.sh / | ||
RUN chmod +x /startup.sh | ||
RUN chmod +x /startup.sh | ||
|
||
# Copy bash profile, if you copy it directly | ||
# you'll lose your colors :-( | ||
COPY ./.profile /tmp/.profile | ||
RUN cat /tmp/.profile >> /home/node/.bashrc && \ | ||
cat /tmp/.profile >> /home/node/.zshrc && \ | ||
rm /tmp/.profile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters