Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM node:23.9.0-bullseye
LABEL authors="iptoux"

# Setze das Arbeitsverzeichnis im Container
WORKDIR /app

# Installiere Git und bereinige den apt-Cache in einem einzigen Layer
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Installiere Angular CLI global
RUN npm install -g @angular/cli

# Klone das Repository
RUN git clone https://github.com/iptoux/AngularTasks

# Setze das Arbeitsverzeichnis auf das Angular-Projekt
WORKDIR /app/AngularTasks

RUN npm install

COPY entrypoint.sh .

# Mache das Start-Skript ausführbar
RUN chmod +x entrypoint.sh

# Exponiere die Ports
EXPOSE 4200

# Setze den Standardbefehl
CMD ["./entrypoint.sh"]
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.8'

services:
angular_tasks:
build: .
hostname: angular-tasks
ports:
- "4200:4200"
volumes:
- angular_node_modules:/app/AngularTasks/node_modules
environment:
- NODE_ENV=production
restart: unless-stopped

volumes:
angular_node_modules:
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
cd /app/AngularTasks
#ng serve --host 0.0.0.0 --disable-host-check --poll 2000
npx ng serve --host 0.0.0.0 --poll 2000 &
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mytaskapplication",
"version": "1.3.3",
"version": "1.3.5",
"main": "app.js",
"scripts": {
"ng": "ng",
Expand Down
Loading