[Komodo] matthias: Commit Dockerfile: update ./Dockerfile
Build And Test / Build and Publish Docker Image (push) Blocked by required conditions
Build And Test / build (push) Successful in 23s

This commit is contained in:
komodo
2026-01-20 22:04:03 +00:00
parent eecbb7a26f
commit cbf512e6f8
+6 -4
View File
@@ -1,10 +1,11 @@
# Stage 1: Golang-Basisimage zum Bauen der App
FROM docker.hnrx.net/golang:latest as build-stage FROM docker.hnrx.net/golang:latest as build-stage
RUN go version RUN go version
WORKDIR /app WORKDIR /app
COPY * ./ COPY . .
RUN ls -lha RUN ls -lha
@@ -14,7 +15,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o manage-servers .
RUN ls -lha RUN ls -lha
FROM docker.hnrx.net/alpine:latest # Stage 2: Nginx zum Ausführen der App
FROM docker.hnrx.net/alpine:latest as production-stage
# Create application directory # Create application directory
RUN mkdir -p /app/config RUN mkdir -p /app/config
@@ -23,10 +25,10 @@ RUN mkdir -p /app/config
WORKDIR /app/ WORKDIR /app/
# Copy the compiled binary from the builder stage # Copy the compiled binary from the builder stage
#COPY manage-servers . COPY --from=build-stage /app/manage-servers .
# Copy the index.html file for the web server # Copy the index.html file for the web server
#COPY index.html . COPY --from=build-stage /app/index.html .
RUN ls -la /app/ RUN ls -la /app/