-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 733 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"]