-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* getting angular to docker * Angular now working, and some tmux!
- Loading branch information
Showing
4 changed files
with
63 additions
and
7 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,24 @@ | ||
# Use the official Node.js image as the base image | ||
FROM node:22 | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy package.json and package-lock.json (if available) | ||
COPY package*.json ./ | ||
|
||
# Install Angular CLI globally | ||
RUN npm install -g @angular/cli | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Copy the rest of the Angular application code | ||
COPY . . | ||
|
||
# Expose the port that Angular will serve on | ||
EXPOSE 4200 | ||
|
||
# Run the Angular development server (ng serve) | ||
CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "4200"] | ||
|
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
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
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,22 @@ | ||
# Start tmux session | ||
tmux new-session -d -s my_session | ||
|
||
# Run docker-compose up -d in the first pane | ||
tmux send-keys "docker compose up -d" C-m | ||
|
||
sleep 1 | ||
|
||
# Run docker-compose logs -f flask in the new pane | ||
tmux send-keys "docker compose logs -f flask" C-m | ||
|
||
# Split the window horizontally (or vertically) for the second pane | ||
tmux split-window -v | ||
|
||
# Run docker-compose logs -f angular in the third pane | ||
tmux send-keys "docker compose logs -f angular" C-m | ||
|
||
tmux rename-window 'dockers' | ||
|
||
# Attach to the tmux session | ||
tmux attach -t my_session | ||
|