Files
manage-servers/Dockerfile
T
komodo eecbb7a26f
Build And Test / Build and Publish Docker Image (push) Has been cancelled
Build And Test / build (push) Has been cancelled
[Komodo] matthias: Commit Dockerfile: update ./Dockerfile
2026-01-20 21:57:47 +00:00

41 lines
702 B
Docker

FROM docker.hnrx.net/golang:latest as build-stage
RUN go version
WORKDIR /app
COPY * ./
RUN ls -lha
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o manage-servers .
RUN ls -lha
FROM docker.hnrx.net/alpine:latest
# Create application directory
RUN mkdir -p /app/config
# Set working directory
WORKDIR /app/
# Copy the compiled binary from the builder stage
#COPY manage-servers .
# Copy the index.html file for the web server
#COPY index.html .
RUN ls -la /app/
# Make the binary executable
#RUN chmod +x ./manage-servers
# Expose the port the web server listens on
EXPOSE 8080
# Command to run the application
ENTRYPOINT ["./manage-servers", "serve"]