This commit is contained in:
Tomáš Dvořák
2025-10-03 16:26:44 +02:00
parent 0fc92f8464
commit cdb8bcd3e9
5928 changed files with 1054476 additions and 72 deletions
+6 -3
View File
@@ -14,7 +14,7 @@ RUN go mod download
COPY . .
# Build the application
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o main .
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o server .
# Runtime stage
FROM alpine:latest
@@ -24,7 +24,7 @@ RUN apk --no-cache add ca-certificates sqlite-libs
WORKDIR /root/
# Copy the binary from builder
COPY --from=builder /app/main .
COPY --from=builder /app/server ./server
# Create directories
RUN mkdir -p /root/logos
@@ -33,4 +33,7 @@ RUN mkdir -p /root/logos
EXPOSE 8080
# Run the application
CMD ["./main"]
CMD ["./server"]