Compare commits

..

3 Commits
main ... main

Author SHA1 Message Date
07efd2bc17 .drone.yml aktualisiert 2026-04-11 11:55:50 +00:00
cd3a2c263e merge upstream 2026-04-11 11:51:29 +00:00
d16a6d8964 Miau 2026-04-11 13:49:08 +02:00
2 changed files with 21 additions and 5 deletions

View File

@ -46,7 +46,7 @@ steps:
#- git remote set-url origin https://git.efi.th-nuernberg.de/gitea/freudenreichan/EinfuehrungInDocker_Pipeline2
# Repo clonen
- git clone https://git.efi.th-nuernberg.de/gitea/freudenreichan/EinfuehrungInDocker_Pipeline2.git
- git clone https://git.efi.th-nuernberg.de/gitea/schreinerma97192/EinfuehrungInDocker_Pipeline2.git
- cd EinfuehrungInDocker_Pipeline
# Branch wechseln oder erstellen

View File

@ -1,5 +1,6 @@
# BUILD STAGE
# Base-Image
FROM ubuntu:latest
FROM debian:stable-slim AS build
# Pakete installieren
RUN apt-get update
@ -9,13 +10,28 @@ RUN apt-get install -y build-essential gcc curl vim net-tools
WORKDIR /app
# alles kopieren
COPY . .
COPY deployment.c .
# Code kompilieren
RUN gcc -o deployment deployment.c
# RUNTIME STAGE
FROM debian:stable-slim
RUN useradd -m appuser
USER appuser
WORKDIR /app
COPY --from=build /app/deployment .
VOLUME ["/output"]
HEALTHCHECK CMD test -f /output/output.txt || exit 1
# Verzeichnis für Ausgabe anlegen
RUN mkdir /output
# RUN mkdir /output
# Ausgabe wird ins Container-Dateisystem geschrieben
ENTRYPOINT ["/bin/bash", "-c"]